File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ ColumnLayout {
30
30
actionItem: ValueInput {
31
31
parentState: dbcacheSetting .state
32
32
description: optionsModel .dbcacheSizeMiB
33
- onEditingFinished: optionsModel .dbcacheSizeMiB = parseInt (text)
33
+ onEditingFinished: {
34
+ optionsModel .dbcacheSizeMiB = parseInt (text)
35
+ dbcacheSetting .forceActiveFocus ()
36
+ }
34
37
}
35
38
onClicked: loadedItem .forceActiveFocus ()
36
39
}
@@ -42,7 +45,10 @@ ColumnLayout {
42
45
actionItem: ValueInput {
43
46
parentState: parSetting .state
44
47
description: optionsModel .scriptThreads
45
- onEditingFinished: optionsModel .scriptThreads = parseInt (text)
48
+ onEditingFinished: {
49
+ optionsModel .scriptThreads = parseInt (text)
50
+ parSetting .forceActiveFocus ()
51
+ }
46
52
}
47
53
onClicked: loadedItem .forceActiveFocus ()
48
54
}
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ ColumnLayout {
36
36
actionItem: ValueInput {
37
37
parentState: pruneTargetSetting .state
38
38
description: optionsModel .pruneSizeGB
39
- onEditingFinished: optionsModel .pruneSizeGB = parseInt (text)
39
+ onEditingFinished: {
40
+ optionsModel .pruneSizeGB = parseInt (text)
41
+ pruneTargetSetting .forceActiveFocus ()
42
+ }
40
43
}
41
44
onClicked: loadedItem .forceActiveFocus ()
42
45
}
Original file line number Diff line number Diff line change 5
5
import QtQuick 2.15
6
6
import QtQuick.Controls 2.15
7
7
8
- TextEdit {
8
+ TextInput {
9
9
id: root
10
10
required property string parentState
11
11
property string description: " "
@@ -44,7 +44,7 @@ TextEdit {
44
44
font .styleName : " Regular"
45
45
font .pixelSize : root .descriptionSize
46
46
color: root .textColor
47
- text: description
47
+ text: root . description
48
48
horizontalAlignment: Text .AlignRight
49
49
wrapMode: Text .WordWrap
50
50
You can’t perform that action at this time.
0 commit comments