aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/util/clickable_label.cpp
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2021-12-25 20:27:52 +0100
committerFearlessTobi <thm.frey@gmail.com>2022-07-25 21:59:28 +0200
commit60008b680e4e6151f7d05a6f8ac4d47045bcfe5e (patch)
treee110c6482a11d711d18515afce4fc50adcee76e7 /src/yuzu/util/clickable_label.cpp
parent00526e94d1cd123d8bc28e560f0f211d9cef09c0 (diff)
yuzu: Add ui files for multiplayer rooms
Diffstat (limited to 'src/yuzu/util/clickable_label.cpp')
-rw-r--r--src/yuzu/util/clickable_label.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu/util/clickable_label.cpp b/src/yuzu/util/clickable_label.cpp
new file mode 100644
index 0000000000..5bde838ca4
--- /dev/null
+++ b/src/yuzu/util/clickable_label.cpp
@@ -0,0 +1,12 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "yuzu/util/clickable_label.h"
+
+ClickableLabel::ClickableLabel(QWidget* parent, [[maybe_unused]] Qt::WindowFlags f)
+ : QLabel(parent) {}
+
+void ClickableLabel::mouseReleaseEvent([[maybe_unused]] QMouseEvent* event) {
+ emit clicked();
+}