aboutsummaryrefslogtreecommitdiffstats
path: root/app/pages/DetailPage.qml
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-12-25 15:47:20 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-12-25 15:47:20 +0900
commitf47c7f522892f502fe8880de45b77ce401a6cb29 (patch)
tree9ef729bbb0a5050a4363d36e4606b61f77bc52a4 /app/pages/DetailPage.qml
parentf77608d1ee6464009f49cd30d946f149571acbc3 (diff)
Diffstat (limited to 'app/pages/DetailPage.qml')
-rw-r--r--app/pages/DetailPage.qml19
1 files changed, 4 insertions, 15 deletions
diff --git a/app/pages/DetailPage.qml b/app/pages/DetailPage.qml
index 45e5202..c1eca33 100644
--- a/app/pages/DetailPage.qml
+++ b/app/pages/DetailPage.qml
@@ -57,21 +57,10 @@ import QtQuick.Controls 2.0
Layout.preferredWidth: 200
Layout.preferredHeight: 200
- Image {
- id: imageicon
- anchors.fill: parent
- source: model.icon != ""?model.icon : 'qrc:/images/blank.svg'
- property string initial: model.name.substring(0,1).toUpperCase()
-
- Label {
- style: Text.Outline
- styleColor: "#00ADDC"
- color: 'transparent'
- font.pixelSize: parent.height * 0.5
- anchors.centerIn: parent
- text: parent.initial
- visible: model.icon == ""
- }
+ DImage {
+ id: imageicon
+ icon: model.icon
+ name: model.name
}
}