mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
UI Nits: Mac toolbar tidy
.. a blank widget left from other coding iterations and the lhs widgets not spacing properly.
This commit is contained in:
@@ -214,9 +214,6 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
head->setContentsMargins(0,0,0,0);
|
||||
|
||||
// widgets
|
||||
toolBarWidgets = new QWidget(this);
|
||||
toolBarWidgets->setContentsMargins(0,0,0,0);
|
||||
|
||||
macAnalButtons = new QWidget(this);
|
||||
macAnalButtons->setContentsMargins(0,0,20,0);
|
||||
|
||||
@@ -257,6 +254,7 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
actbuttons->setImage(2, new QPixmap(":images/mac/trash.png"));
|
||||
pp->addWidget(actbuttons);
|
||||
lb->addWidget(acts);
|
||||
lb->addStretch();
|
||||
connect(actbuttons, SIGNAL(clicked(int,bool)), this, SLOT(actionClicked(int)));
|
||||
|
||||
lb->addWidget(new Spacer(this));
|
||||
@@ -274,13 +272,8 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
connect(styleSelector, SIGNAL(clicked(int,bool)), this, SLOT(toggleStyle()));
|
||||
|
||||
// setup Mac thetoolbar
|
||||
toolBarWidgets->setContentsMargins(0,0,0,0);
|
||||
QHBoxLayout *l = new QHBoxLayout(toolBarWidgets);
|
||||
l->setSpacing(0);
|
||||
l->setContentsMargins(0,0,0,0);
|
||||
head->addWidget(macAnalButtons);
|
||||
head->addWidget(new Spacer(this));
|
||||
head->addWidget(toolBarWidgets);
|
||||
head->addWidget(new Spacer(this));
|
||||
head->addWidget(viewsel);
|
||||
|
||||
|
||||
@@ -443,7 +443,6 @@ class MainWindow : public QMainWindow
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
// Mac Native Support
|
||||
QWidget *toolBarWidgets;
|
||||
QWidget *macAnalButtons;
|
||||
QtMacButton *import, *compose;
|
||||
QtMacSegmentedButton *styleSelector;
|
||||
|
||||
Reference in New Issue
Block a user