Lime3DS/src/citra_qt/util/clickable_label.h

23 lines
464 B
C++
Raw Normal View History

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