diff options
author | 2018-12-25 15:47:20 +0900 | |
---|---|---|
committer | 2018-12-25 15:47:20 +0900 | |
commit | f47c7f522892f502fe8880de45b77ce401a6cb29 (patch) | |
tree | 9ef729bbb0a5050a4363d36e4606b61f77bc52a4 /app/pages/DetailPage.qml | |
parent | f77608d1ee6464009f49cd30d946f149571acbc3 (diff) |
change icon sizesandbox/zheng_wenlong/warehouse
Diffstat (limited to 'app/pages/DetailPage.qml')
-rw-r--r-- | app/pages/DetailPage.qml | 19 |
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 } } |