Skip to content

Commit

Permalink
Drop now-unused top_bar_widget::standard
Browse files Browse the repository at this point in the history
Code cleanup after moving the functionality to separate classes.

See #940.
  • Loading branch information
lmoureaux committed Mar 20, 2022
1 parent 5513d6a commit f01b0de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions client/gui-qt/top_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 1 addition & 5 deletions client/gui-qt/top_bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -87,7 +84,6 @@ class top_bar_widget : public QToolButton {

bool blink;
bool keep_blinking;
standards standard;
QString page;
public slots:
void sblink();
Expand Down

0 comments on commit f01b0de

Please sign in to comment.