aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-22 16:10:11 -0400
committerKen Moore <moorekou@gmail.com>2015-07-22 16:10:11 -0400
commitb38f4f6ce26fd50cc7fac1d1b0c09ab22ee4e3ea (patch)
tree38bdba92c2ebd4bf462810c7ae7b5b58e42a231d /lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
parentAdd support into libLumina for additional "Actions" listed in *.desktop files. (diff)
downloadlumina-b38f4f6ce26fd50cc7fac1d1b0c09ab22ee4e3ea.tar.gz
lumina-b38f4f6ce26fd50cc7fac1d1b0c09ab22ee4e3ea.tar.bz2
lumina-b38f4f6ce26fd50cc7fac1d1b0c09ab22ee4e3ea.zip
Finish up the XDG "Actions" specification for *.desktop files, and integrate it into the AppMenu and UserButton. Also add a new flag to lumina-open so that we can specify which action to use when starting an app.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserItemWidget.h')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserItemWidget.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h b/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
index a65d3e83..b3c5aea7 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
+++ b/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
@@ -18,6 +18,7 @@
#include <QDir>
#include <QFile>
#include <QMouseEvent>
+#include <QAction>
#include <LuminaXDG.h>
@@ -30,17 +31,19 @@ public:
~UserItemWidget();
private:
- QToolButton *button;
+ QToolButton *button, *actButton;
QLabel *icon, *name;
bool isDirectory, isShortcut;
QString linkPath;
void createWidget();
void setupButton(bool disable = false);
+ void setupActions(XDGDesktop);
private slots:
void buttonClicked();
void ItemClicked();
+ void actionClicked(QAction*);
protected:
void mouseReleaseEvent(QMouseEvent *event){
bgstack15