File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,12 @@ ColumnLayout {
27
27
id: dbcacheSetting
28
28
Layout .fillWidth : true
29
29
header: qsTr (" Database cache size (MiB)" )
30
+ errorText: qsTr (" This is not a valid cache size." )
31
+ showErrorText: ! loadedItem .acceptableInput && loadedItem .length > 0
30
32
actionItem: ValueInput {
31
33
parentState: dbcacheSetting .state
32
34
description: optionsModel .dbcacheSizeMiB
35
+ validator: IntValidator{bottom: 100 ;}
33
36
onEditingFinished: {
34
37
optionsModel .dbcacheSizeMiB = parseInt (text)
35
38
dbcacheSetting .forceActiveFocus ()
@@ -45,9 +48,12 @@ ColumnLayout {
45
48
id: parSetting
46
49
Layout .fillWidth : true
47
50
header: qsTr (" Script verification threads" )
51
+ errorText: qsTr (" This is not a valid thread count." )
52
+ showErrorText: ! loadedItem .acceptableInput && loadedItem .length > 0
48
53
actionItem: ValueInput {
49
54
parentState: parSetting .state
50
55
description: optionsModel .scriptThreads
56
+ validator: IntValidator{bottom: - 10 ; top: 10 ;}
51
57
onEditingFinished: {
52
58
optionsModel .scriptThreads = parseInt (text)
53
59
parSetting .forceActiveFocus ()
Original file line number Diff line number Diff line change @@ -33,9 +33,12 @@ ColumnLayout {
33
33
id: pruneTargetSetting
34
34
Layout .fillWidth : true
35
35
header: qsTr (" Storage limit (GB)" )
36
+ errorText: qsTr (" This is not a valid prune target." )
37
+ showErrorText: ! loadedItem .acceptableInput && loadedItem .length > 0
36
38
actionItem: ValueInput {
37
39
parentState: pruneTargetSetting .state
38
40
description: optionsModel .pruneSizeGB
41
+ validator: IntValidator{bottom: 2 ;}
39
42
onEditingFinished: {
40
43
optionsModel .pruneSizeGB = parseInt (text)
41
44
pruneTargetSetting .forceActiveFocus ()
You can’t perform that action at this time.
0 commit comments