diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-07 17:13:47 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-07 17:13:47 (GMT) |
commit | 3db6fa2e985a286c3b53dc621ba164023272cb60 (patch) | |
tree | 07ed150b8386a2868328d6de48447df5050416b7 /Swift/QtUI/QtClickableLabel.h | |
parent | 492c6320cc029d35cb362624883a53442ecda960 (diff) | |
download | swift-3db6fa2e985a286c3b53dc621ba164023272cb60.zip swift-3db6fa2e985a286c3b53dc621ba164023272cb60.tar.bz2 |
Popup edit profile dialog on avatar click.
Resolves: #754
Diffstat (limited to 'Swift/QtUI/QtClickableLabel.h')
-rw-r--r-- | Swift/QtUI/QtClickableLabel.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Swift/QtUI/QtClickableLabel.h b/Swift/QtUI/QtClickableLabel.h new file mode 100644 index 0000000..d56e9b4 --- /dev/null +++ b/Swift/QtUI/QtClickableLabel.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2011 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <QLabel> + +namespace Swift { + class QtClickableLabel : public QLabel { + Q_OBJECT + public: + QtClickableLabel(QWidget* parent); + + void mousePressEvent(QMouseEvent* event); + + signals: + void clicked(); + }; +} |