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