diff options
Diffstat (limited to 'Swift/QtUI/QtClickableLabel.cpp')
-rw-r--r-- | Swift/QtUI/QtClickableLabel.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Swift/QtUI/QtClickableLabel.cpp b/Swift/QtUI/QtClickableLabel.cpp new file mode 100644 index 0000000..f040f5f --- /dev/null +++ b/Swift/QtUI/QtClickableLabel.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2011 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include "QtClickableLabel.h" + +namespace Swift { + +QtClickableLabel::QtClickableLabel(QWidget* parent) : QLabel(parent) { +} + +void QtClickableLabel::mousePressEvent(QMouseEvent*) { + emit clicked(); +} + +} |