mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Allow dragging main window from toolbar
This commit is contained in:
parent
76d445cd56
commit
123c2606b7
@ -180,8 +180,20 @@ Control {
|
||||
onEnabledChanged: Cpp_Misc_MacExtras.setDashboardEnabled(enabled)
|
||||
}
|
||||
|
||||
//
|
||||
// Window drag handler
|
||||
//
|
||||
Item {
|
||||
height: parent.height
|
||||
Layout.fillWidth: true
|
||||
|
||||
DragHandler {
|
||||
grabPermissions: TapHandler.CanTakeOverFromAnything
|
||||
onActiveChanged: {
|
||||
if (active)
|
||||
window.startSystemMove()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
|
Loading…
x
Reference in New Issue
Block a user