mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-18 04:09:21 +02:00
yuzu: Add ui files for multiplayer rooms
This commit is contained in:
parent
00526e94d1
commit
60008b680e
84 changed files with 4524 additions and 49 deletions
12
src/yuzu/util/clickable_label.cpp
Normal file
12
src/yuzu/util/clickable_label.cpp
Normal file
|
|
@ -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();
|
||||
}
|
||||
22
src/yuzu/util/clickable_label.h
Normal file
22
src/yuzu/util/clickable_label.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2017 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWidget>
|
||||
|
||||
class ClickableLabel : public QLabel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ClickableLabel(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
||||
~ClickableLabel() = default;
|
||||
|
||||
signals:
|
||||
void clicked();
|
||||
|
||||
protected:
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue