diff options
| author | manuel <manuel@mausz.at> | 2011-04-09 15:03:50 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-09 15:03:50 +0200 |
| commit | 9f896b86b671b3a05314d2013a315d996b456f95 (patch) | |
| tree | 18bb310c96ea4a6f819494776a91a96a38fee2af /pacman-c++/clicklabel.cpp | |
| parent | 7e4bc8ece49543533c4e27f5d6bc867c1bada601 (diff) | |
| download | foop-9f896b86b671b3a05314d2013a315d996b456f95.tar.gz foop-9f896b86b671b3a05314d2013a315d996b456f95.tar.bz2 foop-9f896b86b671b3a05314d2013a315d996b456f95.zip | |
add toggle audio icon
Diffstat (limited to 'pacman-c++/clicklabel.cpp')
| -rw-r--r-- | pacman-c++/clicklabel.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pacman-c++/clicklabel.cpp b/pacman-c++/clicklabel.cpp new file mode 100644 index 0000000..87b06b8 --- /dev/null +++ b/pacman-c++/clicklabel.cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #include "clicklabel.h" | ||
| 2 | |||
| 3 | ClickLabel::ClickLabel(const QString &text, QWidget *parent, Qt::WindowFlags f) | ||
| 4 | : QLabel(text, parent, f) | ||
| 5 | { | ||
| 6 | } | ||
| 7 | |||
| 8 | void ClickLabel::mouseReleaseEvent(QMouseEvent * /* event */) | ||
| 9 | { | ||
| 10 | emit clicked(); | ||
| 11 | } | ||
| 12 | |||
