mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
OptionsPopup: Reset vertical scroll on tab change
This commit is contained in:
parent
21bf00d1df
commit
405110c80d
1 changed files with 10 additions and 0 deletions
|
@ -54,13 +54,20 @@ Window {
|
||||||
if (chkSetUser.checked && !fieldUserPassword.length) {
|
if (chkSetUser.checked && !fieldUserPassword.length) {
|
||||||
fieldUserPassword.forceActiveFocus()
|
fieldUserPassword.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
popupbody.scrollPosition = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TabButton {
|
TabButton {
|
||||||
text: qsTr("Services")
|
text: qsTr("Services")
|
||||||
|
onClicked: {
|
||||||
|
popupbody.scrollPosition = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
TabButton {
|
TabButton {
|
||||||
text: qsTr("Options")
|
text: qsTr("Options")
|
||||||
|
onClicked: {
|
||||||
|
popupbody.scrollPosition = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,8 +80,11 @@ Window {
|
||||||
anchors.top: bar.bottom
|
anchors.top: bar.bottom
|
||||||
anchors.bottom: buttonsRow.top
|
anchors.bottom: buttonsRow.top
|
||||||
|
|
||||||
|
property double scrollPosition
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
||||||
|
ScrollBar.vertical.position: scrollPosition
|
||||||
|
|
||||||
StackLayout {
|
StackLayout {
|
||||||
id: optionsStack
|
id: optionsStack
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue