mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
activate launcherMenu from liblattedock
This commit is contained in:
parent
7ed33e2497
commit
11a57574bd
@ -22,6 +22,8 @@
|
||||
#include "../app/config-latte.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QtDBus/QDBusInterface>
|
||||
#include <QtDBus/QDBusPendingCall>
|
||||
|
||||
#include <plasma/version.h>
|
||||
|
||||
@ -66,4 +68,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
|
||||
|
@ -44,6 +44,9 @@ public:
|
||||
bool compositingActive() const;
|
||||
uint frameworksVersion() const;
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE void activateLatteLauncherMenu();
|
||||
|
||||
signals:
|
||||
void compositingChanged();
|
||||
void frameworksVersionChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user