From f01b0de92af6e3e809cc9a6d3c5e9305c52005f8 Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Sun, 20 Mar 2022 03:22:07 +0100 Subject: [PATCH] Drop now-unused top_bar_widget::standard Code cleanup after moving the functionality to separate classes. See #940. --- client/gui-qt/top_bar.cpp | 6 +++--- client/gui-qt/top_bar.h | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/client/gui-qt/top_bar.cpp b/client/gui-qt/top_bar.cpp index 13c3d51905..c77bf2c6e2 100644 --- a/client/gui-qt/top_bar.cpp +++ b/client/gui-qt/top_bar.cpp @@ -197,9 +197,9 @@ void indicators_widget::paintEvent(QPaintEvent *event) Sidewidget constructor */ top_bar_widget::top_bar_widget(const QString &label, const QString &pg, - pfcn func, standards type) - : QToolButton(), blink(false), keep_blinking(false), standard(type), - page(pg), right_click(nullptr), wheel_down(nullptr), wheel_up(nullptr), + pfcn func) + : QToolButton(), blink(false), keep_blinking(false), page(pg), + right_click(nullptr), wheel_down(nullptr), wheel_up(nullptr), left_click(func) { setText(label); diff --git a/client/gui-qt/top_bar.h b/client/gui-qt/top_bar.h index f1502f468a..18b943b0ee 100644 --- a/client/gui-qt/top_bar.h +++ b/client/gui-qt/top_bar.h @@ -69,10 +69,7 @@ class top_bar_widget : public QToolButton { Q_OBJECT public: - enum standards { SW_STD, SW_TAX, SW_INDICATORS }; - - top_bar_widget(const QString &label, const QString &pg, pfcn func, - standards type = SW_STD); + top_bar_widget(const QString &label, const QString &pg, pfcn func); ~top_bar_widget() override; int getPriority(); QPixmap *get_pixmap(); @@ -87,7 +84,6 @@ class top_bar_widget : public QToolButton { bool blink; bool keep_blinking; - standards standard; QString page; public slots: void sblink();