Skip to content

Commit

Permalink
Switch the top bar layout to horizontal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Mar 19, 2022
1 parent ad03544 commit 9fdf406
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/gui-qt/top_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ void top_bar_widget::someSlot()
top_bar::top_bar()
{
setAttribute(Qt::WA_OpaquePaintEvent, true);
layout = new QVBoxLayout;
layout = new QHBoxLayout;
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
setLayout(layout);
Expand Down
4 changes: 2 additions & 2 deletions client/gui-qt/top_bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// Qt
#include <QWidget>

class QHBoxLayout;
class QPixmap;
class QVBoxLayout;

typedef void (*pfcn_bool)(bool);
typedef void (*pfcn)();
Expand Down Expand Up @@ -104,5 +104,5 @@ class top_bar : public QWidget {
void paintEvent(QPaintEvent *event) override;

private:
QVBoxLayout *layout;
QHBoxLayout *layout;
};

0 comments on commit 9fdf406

Please sign in to comment.