aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/desktopview/DeskItem.h
blob: c578d692850d8fa5802950dac65a2b841cae7e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2014, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_DESKTOP_ITEM_H
#define _LUMINA_DESKTOP_DESKTOP_ITEM_H

#include <QToolButton>
#include <QProcess>
#include <QString>

#include <LuminaXDG.h>

class DeskItem : public QToolButton{
	Q_OBJECT
public:
	DeskItem(QWidget *parent, QString itempath, int ssize);
	~DeskItem();

	void updateItem();

private slots:
	void RunItem(){
	  QProcess::startDetached("lumina-open "+this->whatsThis());
	}
};

#endif
bgstack15