From e9346b2675044dc20b4f7b6a7858f80f40518693 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 2 Mar 2022 18:39:43 -0500 Subject: Enable right click signals to the progress indicator in the UI. --- ui/progressindicator.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/progressindicator.h b/ui/progressindicator.h index 2e2829e9..f89f6232 100644 --- a/ui/progressindicator.h +++ b/ui/progressindicator.h @@ -102,6 +102,7 @@ class BINARYNINJAUIAPI QProgressIndicator : public QWidget Q_SIGNALS: void clicked(); + void rightClicked(); protected: #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) @@ -114,6 +115,8 @@ class BINARYNINJAUIAPI QProgressIndicator : public QWidget { if (event->button() == Qt::LeftButton) Q_EMIT clicked(); + else if (event->button() == Qt::RightButton) + Q_EMIT rightClicked(); } void timerEvent(QTimerEvent* event) override; void paintEvent(QPaintEvent* event) override; -- cgit v1.3.1