citra/src/citra_qt/util/clickable_label.h

23 lines
464 B
C
Raw Normal View History

2018-01-19 13:42:21 +00:00
// 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:
2018-04-09 18:00:56 +01:00
explicit ClickableLabel(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~ClickableLabel() = default;
2018-01-19 13:42:21 +00:00
signals:
void clicked();
protected:
void mouseReleaseEvent(QMouseEvent* event);
};