-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKhipu2DGridSettings.qml
46 lines (44 loc) · 1020 Bytes
/
Khipu2DGridSettings.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
import QtQuick 2.2
import QtQuick.Window 2.12
import QtQuick.Dialogs 1.0
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.12
/*
This file represents the window that opens when you click on MenuBar > Settings > Grid Settings
*/
Window {
minimumHeight: 180
minimumWidth: 230
ColumnLayout{
spacing: 20
anchors.centerIn: parent
RowLayout{
Text{
text: "Grid style"
}
ComboBox{
model: ["None","Lines","Polar"]
}
}
RowLayout{
Text {
text: "Grid Color"
}
Button {
text: "select"
onClicked: colorDialog.visible = true
}
}
Button{
text: "Save changes"
}
}
ColorDialog{
id: colorDialog
visible: false
onAccepted: {
console.log("You chose: " + colorDialog.color)
colorDialog.close()
}
}
}