RibbonTitleBar: Optimize stay on top.
This commit is contained in:
parent
3093f724e6
commit
7597af6464
|
@ -166,12 +166,7 @@ Item {
|
||||||
pressed_color: Qt.rgba(0,0,0, 0.4)
|
pressed_color: Qt.rgba(0,0,0, 0.4)
|
||||||
text_color_reverse: false
|
text_color_reverse: false
|
||||||
tip_text: qsTr("Stay on Top")
|
tip_text: qsTr("Stay on Top")
|
||||||
onClicked: {
|
onClicked: Window.window.flags ^= Qt.WindowStaysOnTopHint
|
||||||
if (checked)
|
|
||||||
Window.window.flags = Qt.Window | Qt.WindowStaysOnTopHint
|
|
||||||
else
|
|
||||||
Window.window.flags = Qt.Window
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue