Fix QString no cast from ascii in appmenu.cpp
This commit is contained in:
parent
48b1c388bc
commit
0874c3a407
1 changed files with 8 additions and 8 deletions
16
appmenu.cpp
16
appmenu.cpp
|
@ -29,9 +29,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
namespace KWin {
|
||||
|
||||
static const char *KDED_SERVICE = "org.kde.kded";
|
||||
static const char *KDED_APPMENU_PATH = "/modules/appmenu";
|
||||
static const char *KDED_INTERFACE = "org.kde.kded";
|
||||
static QString KDED_SERVICE = QStringLiteral("org.kde.kded");
|
||||
static QString KDED_APPMENU_PATH = QStringLiteral("/modules/appmenu");
|
||||
static QString KDED_INTERFACE = QStringLiteral("org.kde.kded");
|
||||
|
||||
KWIN_SINGLETON_FACTORY(ApplicationMenu)
|
||||
|
||||
|
@ -39,13 +39,13 @@ ApplicationMenu::ApplicationMenu(QObject *parent)
|
|||
: QObject(parent)
|
||||
{
|
||||
QDBusConnection dbus = QDBusConnection::sessionBus();
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, "showRequest",
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, QStringLiteral("showRequest"),
|
||||
this, SLOT(slotShowRequest(qulonglong)));
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, "menuAvailable",
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, QStringLiteral("menuAvailable"),
|
||||
this, SLOT(slotMenuAvailable(qulonglong)));
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, "menuHidden",
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, QStringLiteral("menuHidden"),
|
||||
this, SLOT(slotMenuHidden(qulonglong)));
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, "clearMenus",
|
||||
dbus.connect(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, QStringLiteral("clearMenus"),
|
||||
this, SLOT(slotClearMenus()));
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ void ApplicationMenu::slotClearMenus()
|
|||
void ApplicationMenu::showApplicationMenu(const QPoint &p, const xcb_window_t id)
|
||||
{
|
||||
QList<QVariant> args = QList<QVariant>() << p.x() << p.y() << qulonglong(id);
|
||||
QDBusMessage method = QDBusMessage::createMethodCall(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, "showMenu");
|
||||
QDBusMessage method = QDBusMessage::createMethodCall(KDED_SERVICE, KDED_APPMENU_PATH, KDED_INTERFACE, QStringLiteral("showMenu"));
|
||||
method.setArguments(args);
|
||||
QDBusConnection::sessionBus().asyncCall(method);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue