Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ConfigGeneral.qml
Show All 19 Lines | |||||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Layouts 1.0 | 22 | import QtQuick.Layouts 1.0 | ||
23 | import QtQuick.Controls 1.0 | 23 | import QtQuick.Controls 1.0 | ||
24 | 24 | | |||
25 | Item { | 25 | Item { | ||
26 | property alias cfg_maximumVolume: maximumVolume.value | 26 | property alias cfg_maximumVolume: maximumVolume.value | ||
27 | property alias cfg_volumeStep: volumeStep.value | 27 | property alias cfg_volumeStep: volumeStep.value | ||
28 | property alias cfg_showOsd: showOsd.checked | ||||
29 | | ||||
30 | ColumnLayout { | ||||
31 | Layout.fillWidth: true | ||||
32 | | ||||
33 | GroupBox { | ||||
34 | Layout.fillWidth: true | ||||
35 | flat: true | ||||
36 | title: i18n("Volume") | ||||
28 | 37 | | |||
29 | GridLayout { | 38 | GridLayout { | ||
30 | columns: 2 | 39 | columns: 2 | ||
31 | Layout.fillWidth: true | 40 | Layout.fillWidth: true | ||
32 | 41 | | |||
33 | Label { | 42 | Label { | ||
34 | Layout.alignment: Qt.AlignRight | 43 | Layout.alignment: Qt.AlignRight | ||
35 | text: i18n("Maximum volume:") | 44 | text: i18n("Maximum volume:") | ||
Show All 16 Lines | 60 | SpinBox { | |||
52 | id: volumeStep | 61 | id: volumeStep | ||
53 | minimumValue: 1 | 62 | minimumValue: 1 | ||
54 | maximumValue: 100 | 63 | maximumValue: 100 | ||
55 | stepSize: 1 | 64 | stepSize: 1 | ||
56 | suffix: i18n("%") | 65 | suffix: i18n("%") | ||
57 | } | 66 | } | ||
58 | } | 67 | } | ||
59 | } | 68 | } | ||
69 | | ||||
70 | GroupBox { | ||||
71 | Layout.fillWidth: true | ||||
72 | flat: true | ||||
73 | title: i18n("Behavior") | ||||
74 | | ||||
75 | ColumnLayout { | ||||
76 | CheckBox { | ||||
77 | id: showOsd | ||||
78 | text: i18n("Show OSD") | ||||
79 | } | ||||
80 | } | ||||
81 | } | ||||
82 | } | ||||
83 | } |