MerchantTitlebar: maximize window when title bar is double clicked

This commit is contained in:
rating89us 2021-12-06 06:38:44 +01:00 committed by GitHub
parent bddb9b0050
commit 833b03b5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,7 @@ Rectangle {
anchors.fill: parent
propagateComposedEvents: true
onPressed: previousPosition = globalCursor.getPosition()
onDoubleClicked: root.maximizeClicked()
onPositionChanged: {
if (pressedButtons == Qt.LeftButton) {
var pos = globalCursor.getPosition()