Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ConfigGeneral.qml
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
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 | import org.kde.plasma.private.volume 0.1 | ||||
26 | | ||||
25 | Item { | 27 | Item { | ||
26 | property alias cfg_maximumVolume: maximumVolume.value | 28 | property alias cfg_maximumVolume: maximumVolume.value | ||
27 | property alias cfg_volumeStep: volumeStep.value | 29 | property alias cfg_volumeStep: volumeStep.value | ||
30 | property alias cfg_volumeFeedback: volumeFeedback.checked | ||||
31 | | ||||
32 | ColumnLayout { | ||||
33 | Layout.fillWidth: true | ||||
34 | | ||||
35 | GroupBox { | ||||
36 | Layout.fillWidth: true | ||||
37 | flat: true | ||||
38 | title: i18n("Volume") | ||||
28 | 39 | | |||
29 | GridLayout { | 40 | GridLayout { | ||
30 | columns: 2 | 41 | columns: 2 | ||
31 | Layout.fillWidth: true | 42 | Layout.fillWidth: true | ||
32 | 43 | | |||
33 | Label { | 44 | Label { | ||
34 | Layout.alignment: Qt.AlignRight | 45 | Layout.alignment: Qt.AlignRight | ||
35 | text: i18n("Maximum volume:") | 46 | text: i18n("Maximum volume:") | ||
Show All 16 Lines | 62 | SpinBox { | |||
52 | id: volumeStep | 63 | id: volumeStep | ||
53 | minimumValue: 1 | 64 | minimumValue: 1 | ||
54 | maximumValue: 100 | 65 | maximumValue: 100 | ||
55 | stepSize: 1 | 66 | stepSize: 1 | ||
56 | suffix: i18n("%") | 67 | suffix: i18n("%") | ||
57 | } | 68 | } | ||
58 | } | 69 | } | ||
59 | } | 70 | } | ||
71 | | ||||
72 | GroupBox { | ||||
73 | Layout.fillWidth: true | ||||
74 | flat: true | ||||
75 | title: i18n("Behavior") | ||||
76 | | ||||
77 | ColumnLayout { | ||||
78 | CheckBox { | ||||
79 | id: volumeFeedback | ||||
80 | text: i18n("Volume feedback") | ||||
81 | enabled: feedback.valid | ||||
82 | } | ||||
83 | } | ||||
84 | } | ||||
85 | } | ||||
86 | | ||||
87 | VolumeFeedback { | ||||
88 | id: feedback | ||||
89 | } | ||||
90 | } |