mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Adjust layout in Preferences
As new W' setting in athete -> power is all squashed up on a Mac (where spacing is defaulted to 20, not 10).
This commit is contained in:
@@ -2482,13 +2482,6 @@ CPPage::CPPage(ZonePage* zonePage) : zonePage(zonePage)
|
||||
deleteZoneButton->setFixedSize(20,20);
|
||||
#endif
|
||||
|
||||
QHBoxLayout *actionButtons = new QHBoxLayout;
|
||||
actionButtons->setSpacing(2);
|
||||
actionButtons->addStretch();
|
||||
actionButtons->addWidget(addButton);
|
||||
actionButtons->addWidget(deleteButton);
|
||||
actionButtons->addWidget(defaultButton);
|
||||
|
||||
QHBoxLayout *zoneButtons = new QHBoxLayout;
|
||||
zoneButtons->addStretch();
|
||||
zoneButtons->setSpacing(0);
|
||||
@@ -2514,12 +2507,19 @@ CPPage::CPPage(ZonePage* zonePage) : zonePage(zonePage)
|
||||
wEdit->setSingleStep(100);
|
||||
wEdit->setDecimals(0);
|
||||
|
||||
QHBoxLayout *actionButtons = new QHBoxLayout;
|
||||
actionButtons->setSpacing(2);
|
||||
actionButtons->addWidget(cpLabel);
|
||||
actionButtons->addWidget(cpEdit);
|
||||
actionButtons->addWidget(wLabel);
|
||||
actionButtons->addWidget(wEdit);
|
||||
actionButtons->addStretch();
|
||||
actionButtons->addWidget(addButton);
|
||||
actionButtons->addWidget(deleteButton);
|
||||
actionButtons->addWidget(defaultButton);
|
||||
|
||||
addLayout->addWidget(dateLabel);
|
||||
addLayout->addWidget(dateEdit);
|
||||
addLayout->addWidget(cpLabel);
|
||||
addLayout->addWidget(cpEdit);
|
||||
addLayout->addWidget(wLabel);
|
||||
addLayout->addWidget(wEdit);
|
||||
addLayout->addStretch();
|
||||
|
||||
ranges = new QTreeWidget;
|
||||
|
||||
Reference in New Issue
Block a user