diff options
Diffstat (limited to 'ui/copyablelabel.h')
| -rw-r--r-- | ui/copyablelabel.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/copyablelabel.h b/ui/copyablelabel.h new file mode 100644 index 00000000..e0b79bed --- /dev/null +++ b/ui/copyablelabel.h @@ -0,0 +1,15 @@ +#include <QLabel> +#include "uitypes.h" + +class BINARYNINJAUIAPI CopyableLabel: public QLabel +{ + QColor m_desiredColor {}; + QString m_hiddenText; + +public: + CopyableLabel(const QString& text, const QColor& color); + void setHiddenText(const QString& text); + void enterEvent(QEnterEvent* event) override; + void leaveEvent(QEvent* event) override; + void mousePressEvent(QMouseEvent* event) override; +}; |
