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:
parent
2658dce93e
commit
6086c558cc
@ -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
|
||||
|
@ -48,6 +48,9 @@ public:
|
||||
|
||||
uint frameworksVersion() const;
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE void activateLatteLauncherMenu();
|
||||
|
||||
signals:
|
||||
void compositingChanged();
|
||||
void frameworksVersionChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user