1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-24 17:33:50 +03:00

activate launcherMenu from liblattedock

This commit is contained in:
Michail Vourlakos 2018-03-10 13:04:53 +02:00
parent 2658dce93e
commit 6086c558cc
2 changed files with 16 additions and 0 deletions

View File

@ -22,6 +22,8 @@
#include "../app/config-latte.h"
#include <QDebug>
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusPendingCall>
#include <plasma/version.h>
@ -71,4 +73,15 @@ uint QuickWindowSystem::frameworksVersion() const
return Plasma::version();
}
void QuickWindowSystem::activateLatteLauncherMenu()
{
QDBusConnection::sessionBus().asyncCall(
QDBusMessage::createMethodCall(QStringLiteral("org.kde.lattedock"),
QStringLiteral("/Latte"),
QStringLiteral("org.kde.LatteDock"),
QStringLiteral("activateLauncherMenu")
)
);
}
} //end of namespace

View File

@ -48,6 +48,9 @@ public:
uint frameworksVersion() const;
public slots:
Q_INVOKABLE void activateLatteLauncherMenu();
signals:
void compositingChanged();
void frameworksVersionChanged();