Skip to content

Commit

Permalink
Remove the empty space in the top bar
Browse files Browse the repository at this point in the history
We'll rethink the layout later; for now, simplify it.

See longturn#940.
  • Loading branch information
lmoureaux committed Mar 19, 2022
1 parent eb4c51e commit 46f1917
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion client/gui-qt/page_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ pageGame::pageGame(QWidget *parent)
top_bar_wdg->addWidget(sw_diplo);
top_bar_wdg->addWidget(sw_science);
top_bar_wdg->addWidget(sw_economy);
top_bar_wdg->addSpacer();
top_bar_wdg->addWidget(sw_tax);
top_bar_wdg->addWidget(sw_indicators);
top_bar_wdg->addWidget(sw_endturn);
Expand Down
5 changes: 0 additions & 5 deletions client/gui-qt/top_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,6 @@ void top_bar::addWidget(top_bar_widget *fsw)
layout->addWidget(fsw);
}

/**
* Adds new spacer
*/
void top_bar::addSpacer() { layout->addStretch(); }

/**
Paint event for top_bar
*/
Expand Down
1 change: 0 additions & 1 deletion client/gui-qt/top_bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class top_bar : public QWidget {
top_bar();
~top_bar() override;
void addWidget(top_bar_widget *fsw);
void addSpacer();
void paint(QPainter *painter, QPaintEvent *event);
QList<top_bar_widget *> objects;

Expand Down

0 comments on commit 46f1917

Please sign in to comment.