Style fixing

This commit is contained in:
2018-07-12 21:16:10 +02:00
parent e07e29cd4a
commit 773ad2a91d
5 changed files with 62 additions and 23 deletions

24
SubtitledItemDelegate.qml Normal file
View File

@@ -0,0 +1,24 @@
import QtQuick 2.0
import QtQuick.Controls 2.2
ItemDelegate {
id: root
property string subtitle: ""
contentItem: Column {
Label {
id: titleLabel
width: parent.width
text: root.text
}
Label {
width: parent.width
font.pixelSize: titleLabel.font.pixelSize - 2
text: root.subtitle ? root.subtitle : qsTr("undefined")
opacity: 0.8
}
}
}