Merge pull request #3578

64dd55a TitleBar: maximize window when title bar is double clicked (rating89us)
This commit is contained in:
luigi1111 2021-06-21 13:41:10 -05:00
commit 453388f744
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

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