summaryrefslogtreecommitdiffstats
path: root/app/pages/ManagementPage.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/ManagementPage.qml
parentf77608d1ee6464009f49cd30d946f149571acbc3 (diff)
Diffstat (limited to 'app/pages/ManagementPage.qml')
-rw-r--r--app/pages/ManagementPage.qml19
1 files changed, 4 insertions, 15 deletions
diff --git a/app/pages/ManagementPage.qml b/app/pages/ManagementPage.qml
index e445c63..b622706 100644
--- a/app/pages/ManagementPage.qml
+++ b/app/pages/ManagementPage.qml
@@ -48,21 +48,10 @@ Page {
Layout.preferredWidth: 100
Layout.preferredHeight: 100
- Image {
- id: imageicon
- anchors.fill: parent
- source: model.icon != ""?'file://' + 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 != ""?'file://' + model.icon : ''
+ name: model.name
}
}
ColumnLayout {