diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-09 15:11:35 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-09 15:11:35 +0200 |
| commit | 13199a5212e210206b8d6b938f7c1683760cf226 (patch) | |
| tree | cba982d54d62081589d31f188796b65fc51b703d /pacman-c++/clicklabel.h | |
| parent | 979c3b4528da1608404d6e163211280fee5da9c5 (diff) | |
| parent | 827a9b10539af4a8c4cff70fa345254668d294c7 (diff) | |
| download | foop-13199a5212e210206b8d6b938f7c1683760cf226.tar.gz foop-13199a5212e210206b8d6b938f7c1683760cf226.tar.bz2 foop-13199a5212e210206b8d6b938f7c1683760cf226.zip | |
Merge branch 'master' of git.manuel.mausz.at:/foop
Conflicts:
pacman-c++/sceneholder.cpp
pacman-c++/util.h
Diffstat (limited to 'pacman-c++/clicklabel.h')
| -rw-r--r-- | pacman-c++/clicklabel.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pacman-c++/clicklabel.h b/pacman-c++/clicklabel.h new file mode 100644 index 0000000..494b1ee --- /dev/null +++ b/pacman-c++/clicklabel.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #ifndef CLICKLABEL_H | ||
| 2 | #define CLICKLABEL_H | ||
| 3 | |||
| 4 | #include <QLabel> | ||
| 5 | |||
| 6 | class ClickLabel | ||
| 7 | : public QLabel | ||
| 8 | { | ||
| 9 | Q_OBJECT | ||
| 10 | |||
| 11 | public: | ||
| 12 | ClickLabel(const QString &text, QWidget *parent = 0, Qt::WindowFlags f = 0); | ||
| 13 | |||
| 14 | signals: | ||
| 15 | void clicked(); | ||
| 16 | |||
| 17 | protected: | ||
| 18 | void mouseReleaseEvent(QMouseEvent *event); | ||
| 19 | }; | ||
| 20 | |||
| 21 | #endif // CLICKLABEL_H | ||
