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)
|
||||
text_color_reverse: false
|
||||
tip_text: qsTr("Stay on Top")
|
||||
onClicked: {
|
||||
if (checked)
|
||||
Window.window.flags = Qt.Window | Qt.WindowStaysOnTopHint
|
||||
else
|
||||
Window.window.flags = Qt.Window
|
||||
}
|
||||
onClicked: Window.window.flags ^= Qt.WindowStaysOnTopHint
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue