Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/configAppearance.qml
Context not available. | |||||
24 | import QtQuick.Controls 1.0 as QtControls | 24 | import QtQuick.Controls 1.0 as QtControls | ||
---|---|---|---|---|---|
25 | import QtQuick.Layouts 1.0 as QtLayouts | 25 | import QtQuick.Layouts 1.0 as QtLayouts | ||
26 | import org.kde.plasma.calendar 2.0 as PlasmaCalendar | 26 | import org.kde.plasma.calendar 2.0 as PlasmaCalendar | ||
27 | import org.kde.plasma.core 2.0 as PlasmaCore | ||||
27 | 28 | | |||
28 | Item { | 29 | Item { | ||
29 | id: appearancePage | 30 | id: appearancePage | ||
Context not available. | |||||
33 | signal configurationChanged | 34 | signal configurationChanged | ||
34 | 35 | | |||
35 | property string cfg_fontFamily | 36 | property string cfg_fontFamily | ||
37 | property alias cfg_fontSize: fontSize.value | ||||
36 | property alias cfg_boldText: boldCheckBox.checked | 38 | property alias cfg_boldText: boldCheckBox.checked | ||
37 | property string cfg_timeFormat: "" | 39 | property string cfg_timeFormat: "" | ||
38 | property alias cfg_italicText: italicCheckBox.checked | 40 | property alias cfg_italicText: italicCheckBox.checked | ||
Context not available. | |||||
80 | flat: true | 82 | flat: true | ||
81 | 83 | | |||
82 | QtLayouts.GridLayout { // there's no FormLayout :( | 84 | QtLayouts.GridLayout { // there's no FormLayout :( | ||
83 | columns: 2 | 85 | columns: 3 | ||
84 | QtLayouts.Layout.fillWidth: true | 86 | QtLayouts.Layout.fillWidth: true | ||
85 | 87 | | |||
86 | QtControls.Label { | 88 | QtControls.Label { | ||
Context not available. | |||||
107 | } | 109 | } | ||
108 | } | 110 | } | ||
109 | 111 | | |||
112 | QtControls.SpinBox { | ||||
113 | id: fontSize | ||||
114 | minimumValue: 8 | ||||
115 | enabled: plasmoid.formFactor != PlasmaCore.Types.Vertical | ||||
116 | } | ||||
117 | | ||||
110 | // spacer, cannot do Qt.AlignTop on the font style label + rowSpan 3, otherwise looks odd | 118 | // spacer, cannot do Qt.AlignTop on the font style label + rowSpan 3, otherwise looks odd | ||
111 | Item { | 119 | Item { | ||
112 | QtLayouts.Layout.fillWidth: true | 120 | QtLayouts.Layout.fillWidth: true | ||
113 | QtLayouts.Layout.rowSpan: 2 | 121 | QtLayouts.Layout.rowSpan: 1 | ||
122 | QtLayouts.Layout.columnSpan: 3 | ||||
114 | } | 123 | } | ||
115 | 124 | | |||
116 | QtControls.CheckBox { | 125 | QtControls.CheckBox { | ||
117 | id: boldCheckBox | 126 | id: boldCheckBox | ||
127 | QtLayouts.Layout.columnSpan: 3 | ||||
118 | text: i18n("Bold text") | 128 | text: i18n("Bold text") | ||
119 | } | 129 | } | ||
120 | 130 | | |||
Context not available. |