From 9f896b86b671b3a05314d2013a315d996b456f95 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 9 Apr 2011 15:03:50 +0200 Subject: add toggle audio icon --- pacman-c++/clicklabel.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pacman-c++/clicklabel.h (limited to 'pacman-c++/clicklabel.h') 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 @@ +#ifndef CLICKLABEL_H +#define CLICKLABEL_H + +#include + +class ClickLabel + : public QLabel +{ + Q_OBJECT + +public: + ClickLabel(const QString &text, QWidget *parent = 0, Qt::WindowFlags f = 0); + +signals: + void clicked(); + +protected: + void mouseReleaseEvent(QMouseEvent *event); +}; + +#endif // CLICKLABEL_H -- cgit v1.2.3