summaryrefslogtreecommitdiff
path: root/ui/copyablelabel.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-01-23 13:49:23 -0500
committerBrian Potchik <brian@vector35.com>2025-01-23 13:49:23 -0500
commit2a74060264ce1bdab1cc33e08965e6d7429be1e8 (patch)
tree1574551483ddae2bb54f15618c99b177b6354717 /ui/copyablelabel.h
parent0e67c443444849b313d8d676a5506a8e025a1cf9 (diff)
Fix CopyableLabel filename.
Diffstat (limited to 'ui/copyablelabel.h')
-rw-r--r--ui/copyablelabel.h15
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;
+};