forked from IgorYbema/tscSettings
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathHideErrorSystrayScreen.qml
More file actions
63 lines (47 loc) · 1.27 KB
/
HideErrorSystrayScreen.qml
File metadata and controls
63 lines (47 loc) · 1.27 KB
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
import QtQuick 2.1
import qb.components 1.0
import BxtClient 1.0
Screen {
id: hideErrorSystrayScreen
isSaveCancelDialog: true
screenTitle: qsTr("Hide error systray icon")
onShown: radioButtonList.currentIndex = globals.tsc["hideErrorSystray"]
onSaved: {
var myTsc = globals.tsc
myTsc["hideErrorSystray"] = radioButtonList.currentIndex
globals.tsc = myTsc
app.saveSettingsTsc();
}
Text {
id: bodyText
width: Math.round(600 * 1.28)
wrapMode: Text.WordWrap
text: "This option will allow you to hide the error systray icon which is normally shown if there is a issue with your Toon"
color: "#000000"
font.pixelSize: qfont.bodyText
font.family: qfont.regular.name
anchors {
top: parent.top
topMargin: isNxt ? Math.round(60 * 1.28) : 10
horizontalCenter: parent.horizontalCenter
}
}
RadioButtonList {
id: radioButtonList
width: Math.round(220 * 1.28)
height: Math.round(250 * app.nxtScale)
anchors {
top: bodyText.baseline
topMargin: Math.round(60 * app.nxtScale)
left: parent.left
leftMargin: isNxt ? 200 : 100
}
title: qsTr("Hide systray icon")
Component.onCompleted: {
addItem("Disabled - Show");
addItem("Enabled - Hide");
forceLayout();
currentIndex = 0;
}
}
}