-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLablePrefsComboBox.qml
36 lines (35 loc) · 1017 Bytes
/
LablePrefsComboBox.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import QtQuick 2.9
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.5
import "../"
import "./"
import AppStyle 1.0
import FontStyle 1.0
RowLayout {
id:root
property bool isBold: false
property string label: "System Theme :"
property var model: null
Layout.fillWidth: true
spacing: 10
property int currentIndex: 0
Label {
width: parent.width * 0.50
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
opacity: 0.87
text:label
font.family: FontStyle.getContentFont.name
font.pixelSize: isBold ? AppStyle.t1 : AppStyle.t1
font.bold: isBold ? Font.Bold : Font.Normal
font.weight: isBold ? Font.Bold : Font.Normal
verticalAlignment: Text.AlignVCenter
Layout.alignment: Qt.AlignVCenter
elide: Text.ElideRight
Layout.leftMargin: 10
}
PrefsComboBoxLabel{
model: root.model
currentIndex: root.currentIndex
onCurrentIndexChanged:root.currentIndex = currentIndex
}
}