[X2Go-Commits] [x2goplasmabindings] 03/03: x2goplasmoidkf5.cpp: try to fix code to work with Qt 5.11 and C++11 lambdas for qmlRegisterSingletonType ().
git-admin at x2go.org
git-admin at x2go.org
Fri Aug 11 19:58:54 CEST 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goplasmabindings.
commit 27d9b2cbe7c0b78896395586c469b372183bc9ae
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Aug 11 19:58:41 2023 +0200
x2goplasmoidkf5.cpp: try to fix code to work with Qt 5.11 and C++11 lambdas for qmlRegisterSingletonType ().
---
debian/changelog | 2 ++
x2goplasmoidkf5.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index e068990..92d7407 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -41,6 +41,8 @@ x2goplasmabindings (3.0.2.3-0x2go1) UNRELEASED; urgency=medium
- CMakeLists.txt: make sure to use the Qt5::... targets, older systems do
not define a versionless alias, since this was only introduced for
Qt-6-compatibility.
+ - x2goplasmoidkf5.cpp: try to fix code to work with Qt 5.11 and C++11
+ lambdas for qmlRegisterSingletonType ().
* x2goplasmabindings.spec:
+ Prepare for Plasma 5 support.
+ Stop duplicating Group tag.
diff --git a/x2goplasmoidkf5.cpp b/x2goplasmoidkf5.cpp
index 7cb27e0..e4dae4f 100644
--- a/x2goplasmoidkf5.cpp
+++ b/x2goplasmoidkf5.cpp
@@ -61,7 +61,7 @@ public:
void registerTypes(const char *sUri) override
{
- qmlRegisterSingletonType<Helpers> (sUri, 1, 0, "Helpers", [](QQmlEngine *, QJSEngine *)
+ qmlRegisterSingletonType<Helpers> (sUri, 1, 0, "Helpers", [](QQmlEngine *, QJSEngine *) -> QObject *
{
return new Helpers();
});
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goplasmabindings.git
More information about the x2go-commits
mailing list