blob: 6580216067ad2c530ab457d2e7e5c37a58983516 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <QLabel>
#include "uitypes.h"
class BINARYNINJAUIAPI CopyableLabel: public QLabel
{
QColor m_desiredColor {};
QString m_hiddenText;
QString m_copyText;
public:
CopyableLabel(const QString& text, const QColor& color);
void setHiddenText(const QString& text);
void setCopyText(const QString& text);
void enterEvent(QEnterEvent* event) override;
void leaveEvent(QEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
};
|