Changeset View
Changeset View
Standalone View
Standalone View
applets/quickshare/plasmoid/contents/ui/settingsGeneral.qml
Show All 11 Lines | |||||
12 | * GNU General Public License for more details. * | 12 | * GNU General Public License for more details. * | ||
13 | * * | 13 | * * | ||
14 | * You should have received a copy of the GNU General Public License * | 14 | * You should have received a copy of the GNU General Public License * | ||
15 | * along with this program; if not, write to the * | 15 | * along with this program; if not, write to the * | ||
16 | * Free Software Foundation, Inc., * | 16 | * Free Software Foundation, Inc., * | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | import QtQuick 2.2 | 20 | import QtQuick 2.12 | ||
21 | import QtQuick.Controls 1.0 as QtControls | 21 | import QtQuick.Controls 2.5 | ||
22 | import QtQuick.Layouts 1.0 | 22 | import org.kde.kirigami 2.5 as Kirigami | ||
23 | | ||||
24 | Item { | ||||
25 | width: childrenRect.width | ||||
26 | height: childrenRect.height | ||||
23 | 27 | | |||
24 | ColumnLayout { | | |||
25 | id: configRoot | | |||
26 | property alias cfg_historySize: historySpin.value | 28 | property alias cfg_historySize: historySpin.value | ||
27 | property alias cfg_copyAutomatically: copyAutomatically.checked | 29 | property alias cfg_copyAutomatically: copyAutomatically.checked | ||
28 | 30 | | |||
29 | GridLayout { | 31 | Kirigami.FormLayout { | ||
30 | columns: 2 | 32 | id: configRoot | ||
33 | anchors.left: parent.left | ||||
34 | anchors.right: parent.right | ||||
31 | 35 | | |||
32 | QtControls.Label { | 36 | SpinBox { | ||
33 | Layout.row: 0 | | |||
34 | Layout.column: 0 | | |||
35 | Layout.alignment: Qt.AlignRight | | |||
36 | text: i18nc("@label:spinbox", "History size:") | | |||
37 | } | | |||
38 | QtControls.SpinBox { | | |||
39 | id: historySpin | 37 | id: historySpin | ||
40 | Layout.row: 0 | 38 | Kirigami.FormData.label: i18nc("@label:spinbox", "History size:") | ||
41 | Layout.column: 1 | | |||
42 | value: 3 | 39 | value: 3 | ||
43 | } | 40 | } | ||
44 | 41 | | |||
45 | QtControls.Label { | 42 | Item { | ||
46 | Layout.row: 1 | 43 | Kirigami.FormData.isSection: false | ||
47 | Layout.column: 0 | | |||
48 | Layout.alignment: Qt.AlignRight | | |||
49 | text: i18nc("@option:check", "Copy automatically:") | | |||
50 | } | 44 | } | ||
51 | QtControls.CheckBox { | 45 | | ||
52 | Layout.row: 1 | 46 | CheckBox { | ||
53 | Layout.column: 1 | | |||
54 | id: copyAutomatically | 47 | id: copyAutomatically | ||
48 | Kirigami.FormData.label: i18nc("@option:check", "Copy automatically:") | ||||
55 | } | 49 | } | ||
56 | } | 50 | } | ||
57 | | ||||
58 | Item { | | |||
59 | Layout.fillHeight: true | | |||
60 | } | | |||
61 | } | 51 | } |