quick demo: fix for latest qt
The onClosing signal was removed in latest qt. Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
814d2ad12d
commit
653fa1d6f1
|
@ -43,13 +43,8 @@ FramelessApplicationWindow {
|
|||
}
|
||||
return FramelessUtils.defaultSystemLightColor;
|
||||
}
|
||||
Connections {
|
||||
target: window
|
||||
function onClosing(close)
|
||||
{
|
||||
Settings.saveGeometry(window)
|
||||
}
|
||||
}
|
||||
|
||||
Component.onDestruction: Settings.saveGeometry(window)
|
||||
|
||||
FramelessHelper.onReady: {
|
||||
// Let FramelessHelper know what's our homemade title bar, otherwise
|
||||
|
|
|
@ -43,13 +43,8 @@ FramelessWindow {
|
|||
}
|
||||
return FramelessUtils.defaultSystemLightColor;
|
||||
}
|
||||
Connections {
|
||||
target: window
|
||||
function onClosing(close)
|
||||
{
|
||||
Settings.saveGeometry(window)
|
||||
}
|
||||
}
|
||||
|
||||
Component.onDestruction: Settings.saveGeometry(window)
|
||||
|
||||
FramelessHelper.onReady: {
|
||||
// Let FramelessHelper know what's our homemade title bar, otherwise
|
||||
|
|
Loading…
Reference in New Issue