-
Notifications
You must be signed in to change notification settings - Fork 0
/
StorePreferences.qml
75 lines (64 loc) · 2.37 KB
/
StorePreferences.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// This file is licensed under either of licenses:
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: BSD-2-Clause
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import img_from_clip
ScrollView {
id: mainView
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
property RenderConfiguration renderConfiguration
Flickable {
id: flickable
anchors.fill: parent
leftMargin: 20
rightMargin: 20
bottomMargin: 32
contentHeight: mainRow.implicitHeight
ColumnLayout {
id: mainRow
width: parent.width
spacing: 16
GroupBox {
title: qsTr("PNG scale")
Layout.maximumWidth: parent.width
Layout.preferredWidth: parent.width
ColumnLayout {
width: parent.width
spacing: 8
Label {
wrapMode: Text.WordWrap
text: qsTr("Select at which scales PNG files should be saved. This is useful e.g. when exporting images for iOS")
Layout.fillWidth: true
}
CheckBox {
Layout.fillWidth: true
text: qsTr("1.5x")
checked: renderConfiguration.scale15
onCheckedChanged: renderConfiguration.scale15 = checked
}
CheckBox {
Layout.fillWidth: true
text: qsTr("2x")
checked: renderConfiguration.scale2
onCheckedChanged: renderConfiguration.scale2 = checked
}
CheckBox {
Layout.fillWidth: true
text: qsTr("3x")
checked: renderConfiguration.scale3
onCheckedChanged: renderConfiguration.scale3 = checked
}
CheckBox {
Layout.fillWidth: true
text: qsTr("4x")
checked: renderConfiguration.scale4
onCheckedChanged: renderConfiguration.scale4 = checked
}
}
}
}
}
}