diff --git a/CMakeLists.txt b/CMakeLists.txt index 556c866..873d743 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.16) -project(fcitx5-qt VERSION 5.1.3) +project(fcitx5-qt VERSION 5.1.4) set(FCITX5_QT_VERSION ${PROJECT_VERSION}) set(REQUIRED_QT4_VERSION 4.8.0) diff --git a/qt5/dbusaddons/fcitxqtcontrollerproxy.h b/qt5/dbusaddons/fcitxqtcontrollerproxy.h index 4c144c0..2720c52 100644 --- a/qt5/dbusaddons/fcitxqtcontrollerproxy.h +++ b/qt5/dbusaddons/fcitxqtcontrollerproxy.h @@ -74,6 +74,12 @@ public Q_SLOTS: // METHODS return asyncCallWithArgumentList(QStringLiteral("AvailableKeyboardLayouts"), argumentList); } + inline QDBusPendingReply CanRestart() { + QList argumentList; + return asyncCallWithArgumentList(QStringLiteral("CanRestart"), + argumentList); + } + inline QDBusPendingReply CheckUpdate() { QList argumentList; diff --git a/qt5/dbusaddons/interfaces/org.fcitx.Fcitx.Controller1.xml b/qt5/dbusaddons/interfaces/org.fcitx.Fcitx.Controller1.xml index cf1b033..c79de4d 100644 --- a/qt5/dbusaddons/interfaces/org.fcitx.Fcitx.Controller1.xml +++ b/qt5/dbusaddons/interfaces/org.fcitx.Fcitx.Controller1.xml @@ -109,6 +109,9 @@ + + + diff --git a/qt6/dbusaddons/fcitxqtcontrollerproxy.h b/qt6/dbusaddons/fcitxqtcontrollerproxy.h index 70b738f..44744fa 100644 --- a/qt6/dbusaddons/fcitxqtcontrollerproxy.h +++ b/qt6/dbusaddons/fcitxqtcontrollerproxy.h @@ -74,6 +74,12 @@ public Q_SLOTS: // METHODS return asyncCallWithArgumentList(QStringLiteral("AvailableKeyboardLayouts"), argumentList); } + inline QDBusPendingReply CanRestart() { + QList argumentList; + return asyncCallWithArgumentList(QStringLiteral("CanRestart"), + argumentList); + } + inline QDBusPendingReply CheckUpdate() { QList argumentList;