From 3db6fa2e985a286c3b53dc621ba164023272cb60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Mon, 7 Feb 2011 18:13:47 +0100
Subject: Popup edit profile dialog on avatar click.

Resolves: #754

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();
+}
+
+}
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();
+	};
+}
-- 
cgit v0.10.2-6-g49f6