summaryrefslogtreecommitdiff
path: root/ui/copyablelable.h
blob: 9cca2bef4cd4945602598432987c24c014d49db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <QLabel>
#include "uitypes.h"

class BINARYNINJAUIAPI CopyableLabel: public QLabel
{
	QColor m_desiredColor {};
	QString altText = "";

public:
	CopyableLabel(const QString& text, const QColor& color, bool show = true);
	void enterEvent(QEnterEvent* event) override;
	void leaveEvent(QEvent* event) override;
	void mousePressEvent(QMouseEvent* event) override;
};