Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ConfigAppearance.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2013 Sebastian Kügler <sebas@kde.org> | ||||
3 | * Copyright 2014 Marco Martin <mart@kde.org> | ||||
4 | * | ||||
5 | * This program is free software; you can redistribute it and/or modify | ||||
6 | * it under the terms of the GNU General Public License as published by | ||||
7 | * the Free Software Foundation; either version 2 of the License, or | ||||
8 | * (at your option) any later version. | ||||
9 | * | ||||
10 | * This program is distributed in the hope that it will be useful, | ||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | * GNU General Public License for more details. | ||||
14 | * | ||||
15 | * You should have received a copy of the GNU General Public License | ||||
16 | * along with this program; if not, write to the Free Software | ||||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | import QtQuick 2.0 | ||||
21 | import QtQuick.Controls 1.0 as QtControls | ||||
22 | import QtQuick.Layouts 1.0 as QtLayouts | ||||
23 | | ||||
24 | Item { | ||||
25 | id: appearancePage | ||||
26 | | ||||
27 | width: childrenRect.width | ||||
28 | height: childrenRect.height | ||||
29 | implicitWidth: mainColumn.implicitWidth | ||||
30 | implicitHeight: pageColumn.implicitHeight | ||||
31 | | ||||
32 | property alias cfg_iconsSpacing: iconsSpacing.value | ||||
33 | | ||||
34 | | ||||
35 | QtLayouts.ColumnLayout { | ||||
36 | id: mainColumn | ||||
37 | | ||||
38 | QtLayouts.RowLayout { | ||||
39 | QtControls.Label { | ||||
40 | text: i18n("Icons Spacing:"); | ||||
41 | } | ||||
42 | | ||||
43 | QtControls.SpinBox{ | ||||
44 | id: iconsSpacing | ||||
45 | minimumValue: 0 | ||||
46 | maximumValue: 36 //in pixels | ||||
47 | | ||||
48 | suffix: i18nc("pixels","px.") | ||||
49 | } | ||||
50 | } | ||||
51 | } | ||||
52 | } |