diff options
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/copyablelable.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/copyablelable.h b/ui/copyablelable.h new file mode 100644 index 00000000..9cca2bef --- /dev/null +++ b/ui/copyablelable.h @@ -0,0 +1,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; +}; |
