graphicsbutton.h
28 lines
| 543 B
| text/x-c
|
CLexer
Marek Rosa
|
r2252 | #ifndef GRAPHICSBUTTON_H | ||
#define GRAPHICSBUTTON_H | ||||
#include <QWidget> | ||||
#include <QDir> | ||||
Marek Rosa
|
r2254 | class QProcess; | ||
Marek Rosa
|
r2252 | class GraphicsButton : public QWidget | ||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit GraphicsButton(const QString& path, QDir appFolder, const QString& app, QWidget *parent = 0); | ||||
Marek Rosa
|
r2254 | ~GraphicsButton(); | ||
Marek Rosa
|
r2252 | |||
protected: | ||||
void mousePressEvent(QMouseEvent * event); | ||||
void paintEvent(QPaintEvent *); | ||||
private: | ||||
QPixmap m_pixmap; | ||||
QString m_path; | ||||
QDir m_appFolder; | ||||
QString m_app; | ||||
Marek Rosa
|
r2254 | QProcess *m_demoApp; | ||
Marek Rosa
|
r2252 | }; | ||
#endif // GRAPHICSBUTTON_H | ||||