From ea4f4431ef84951c30bdb7eb7a82af55c0ecc7d0 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Tue, 15 Nov 2022 17:02:52 -0800 Subject: [PATCH] Fix qt4 build --- qt4/dbusaddons/fcitxqtinputcontextproxy.cpp | 3 ++- qt4/dbusaddons/fcitxqtinputcontextproxyimpl.h | 2 +- qt5/dbusaddons/fcitxqtinputcontextproxy.cpp | 3 ++- qt6/dbusaddons/fcitxqtinputcontextproxy.cpp | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/qt4/dbusaddons/fcitxqtinputcontextproxy.cpp b/qt4/dbusaddons/fcitxqtinputcontextproxy.cpp index 2f0953c..fa3e6d9 100644 --- a/qt4/dbusaddons/fcitxqtinputcontextproxy.cpp +++ b/qt4/dbusaddons/fcitxqtinputcontextproxy.cpp @@ -65,7 +65,8 @@ QDBusPendingReply<> FcitxQtInputContextProxy::reset() { return d->icproxy_->Reset(); } -QDBusPendingReply<> FcitxQtInputContextProxy::setSupportedCapability(qulonglong caps) { +QDBusPendingReply<> +FcitxQtInputContextProxy::setSupportedCapability(qulonglong caps) { Q_D(FcitxQtInputContextProxy); return d->icproxy_->SetSupportedCapability(caps); } diff --git a/qt4/dbusaddons/fcitxqtinputcontextproxyimpl.h b/qt4/dbusaddons/fcitxqtinputcontextproxyimpl.h index 9288820..2725711 100644 --- a/qt4/dbusaddons/fcitxqtinputcontextproxyimpl.h +++ b/qt4/dbusaddons/fcitxqtinputcontextproxyimpl.h @@ -110,7 +110,7 @@ public Q_SLOTS: // METHODS { QList argumentList; argumentList << QVariant::fromValue(caps); - return asyncCallWithArgumentList(QStringLiteral("SetSupportedCapability"), argumentList); + return asyncCallWithArgumentList(QLatin1String("SetSupportedCapability"), argumentList); } inline QDBusPendingReply<> SetCapability(qulonglong caps) { diff --git a/qt5/dbusaddons/fcitxqtinputcontextproxy.cpp b/qt5/dbusaddons/fcitxqtinputcontextproxy.cpp index 426f2e4..d8e53ff 100644 --- a/qt5/dbusaddons/fcitxqtinputcontextproxy.cpp +++ b/qt5/dbusaddons/fcitxqtinputcontextproxy.cpp @@ -64,7 +64,8 @@ QDBusPendingReply<> FcitxQtInputContextProxy::reset() { return d->icproxy_->Reset(); } -QDBusPendingReply<> FcitxQtInputContextProxy::setSupportedCapability(qulonglong caps) { +QDBusPendingReply<> +FcitxQtInputContextProxy::setSupportedCapability(qulonglong caps) { Q_D(FcitxQtInputContextProxy); return d->icproxy_->SetSupportedCapability(caps); } diff --git a/qt6/dbusaddons/fcitxqtinputcontextproxy.cpp b/qt6/dbusaddons/fcitxqtinputcontextproxy.cpp index e1aa432..9f9b63f 100644 --- a/qt6/dbusaddons/fcitxqtinputcontextproxy.cpp +++ b/qt6/dbusaddons/fcitxqtinputcontextproxy.cpp @@ -59,7 +59,8 @@ QDBusPendingReply<> FcitxQtInputContextProxy::reset() { return d->icproxy_->Reset(); } -QDBusPendingReply<> FcitxQtInputContextProxy::setSupportedCapability(qulonglong caps) { +QDBusPendingReply<> +FcitxQtInputContextProxy::setSupportedCapability(qulonglong caps) { Q_D(FcitxQtInputContextProxy); return d->icproxy_->SetSupportedCapability(caps); }