fixed display of cancel button on install/uninstall pages
This commit is contained in:
parent
db8d966fac
commit
e9468a4c2f
5 changed files with 16 additions and 6 deletions
|
@ -110,6 +110,7 @@ signals:
|
|||
|
||||
void showBusyIndicator(bool visible);
|
||||
void disableControls(bool disabled);
|
||||
void disableTabBar(bool disabled);
|
||||
|
||||
void hideMainWindow();
|
||||
void raiseMainWindow();
|
||||
|
|
|
@ -14,8 +14,8 @@ import "../Config"
|
|||
PageType {
|
||||
id: root
|
||||
|
||||
Component.onCompleted: PageController.disableControls(true)
|
||||
Component.onDestruction: PageController.disableControls(false)
|
||||
Component.onCompleted: PageController.disableTabBar(true)
|
||||
Component.onDestruction: PageController.disableTabBar(false)
|
||||
|
||||
SortFilterProxyModel {
|
||||
id: proxyServersModel
|
||||
|
|
|
@ -14,8 +14,8 @@ import "../Config"
|
|||
PageType {
|
||||
id: root
|
||||
|
||||
Component.onCompleted: PageController.disableControls(true)
|
||||
Component.onDestruction: PageController.disableControls(false)
|
||||
Component.onCompleted: PageController.disableTabBar(true)
|
||||
Component.onDestruction: PageController.disableTabBar(false)
|
||||
|
||||
property bool isTimerRunning: true
|
||||
property string progressBarText: qsTr("Usually it takes no more than 5 minutes")
|
||||
|
|
|
@ -48,6 +48,10 @@ PageType {
|
|||
isControlsDisabled = disabled
|
||||
}
|
||||
|
||||
function onDisableTabBar(disabled) {
|
||||
isControlsDisabled = disabled
|
||||
}
|
||||
|
||||
function onEscapePressed() {
|
||||
if (isControlsDisabled) {
|
||||
return
|
||||
|
|
|
@ -15,6 +15,7 @@ PageType {
|
|||
id: root
|
||||
|
||||
property bool isControlsDisabled: false
|
||||
property bool isTabBarDisabled: false
|
||||
|
||||
Connections {
|
||||
target: PageController
|
||||
|
@ -38,6 +39,10 @@ PageType {
|
|||
isControlsDisabled = disabled
|
||||
}
|
||||
|
||||
function onDisableTabBar(disabled) {
|
||||
isTabBarDisabled = disabled
|
||||
}
|
||||
|
||||
function onClosePage() {
|
||||
if (tabBarStackView.depth <= 1) {
|
||||
return
|
||||
|
@ -63,7 +68,7 @@ PageType {
|
|||
}
|
||||
|
||||
function onEscapePressed() {
|
||||
if (root.isControlsDisabled) {
|
||||
if (root.isControlsDisabled || root.isTabBarDisabled) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -179,7 +184,7 @@ PageType {
|
|||
leftPadding: 96
|
||||
rightPadding: 96
|
||||
|
||||
enabled: !root.isControlsDisabled
|
||||
enabled: !root.isControlsDisabled && !root.isTabBarDisabled
|
||||
|
||||
background: Shape {
|
||||
width: parent.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue