fix qmake linux build, and fix the "Quick" example (#194)

* fix: qmake linux build

* little fix for the "Quick" example

Window.qml / ApplicationWindow.qml: fix: "FramelessApplicationWindow.onClosing" is not available in org.wangwenx190.FramelessHelper 1.0.

* remove xcb - as requested
This commit is contained in:
micpub 2022-12-30 03:35:20 +01:00 committed by GitHub
parent 4a903a5805
commit 32457c5538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View File

@ -43,7 +43,13 @@ FramelessApplicationWindow {
}
return FramelessUtils.defaultSystemLightColor;
}
onClosing: Settings.saveGeometry(window)
Connections {
target: window
function onClosing(close)
{
Settings.saveGeometry(window)
}
}
FramelessHelper.onReady: {
// Let FramelessHelper know what's our homemade title bar, otherwise

View File

@ -43,7 +43,13 @@ FramelessWindow {
}
return FramelessUtils.defaultSystemLightColor;
}
onClosing: Settings.saveGeometry(window)
Connections {
target: window
function onClosing(close)
{
Settings.saveGeometry(window)
}
}
FramelessHelper.onReady: {
// Let FramelessHelper know what's our homemade title bar, otherwise

View File

@ -64,6 +64,9 @@ win32 {
}
unix:!macx {
CONFIG += link_pkgconfig
PKGCONFIG += gtk+-3.0
DEFINES += GDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6
HEADERS += \
$$CORE_PUB_INC_DIR/framelesshelper_linux.h
SOURCES += \