mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
Bugfix: GUI/OptionsDialog: Set stretch factor on spacers so window resizes avoid weird spacing
This commit is contained in:
parent
5fdea54c90
commit
7e53e5dc5b
@ -64,7 +64,7 @@ void OptionsDialog::FixTabOrder(QWidget * const o)
|
|||||||
prevwidget = o;
|
prevwidget = o;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsDialog::CreateOptionUI(QBoxLayout * const layout, QWidget * const o, const QString& text, QLayout *horizontalLayout)
|
void OptionsDialog::CreateOptionUI(QBoxLayout * const layout, QWidget * const o, const QString& text, QBoxLayout *horizontalLayout)
|
||||||
{
|
{
|
||||||
QWidget * const parent = o->parentWidget();
|
QWidget * const parent = o->parentWidget();
|
||||||
const QStringList text_parts = text.split("%s");
|
const QStringList text_parts = text.split("%s");
|
||||||
@ -90,9 +90,7 @@ void OptionsDialog::CreateOptionUI(QBoxLayout * const layout, QWidget * const o,
|
|||||||
|
|
||||||
horizontalLayout->addWidget(labelAfter);
|
horizontalLayout->addWidget(labelAfter);
|
||||||
|
|
||||||
QSpacerItem * const horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
horizontalLayout->addStretch(1);
|
||||||
|
|
||||||
horizontalLayout->addItem(horizontalSpacer);
|
|
||||||
|
|
||||||
layout->addLayout(horizontalLayout);
|
layout->addLayout(horizontalLayout);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class QBoxLayout;
|
|||||||
class QCheckBox;
|
class QCheckBox;
|
||||||
class QDataWidgetMapper;
|
class QDataWidgetMapper;
|
||||||
class QDoubleSpinBox;
|
class QDoubleSpinBox;
|
||||||
class QLayout;
|
class QBoxLayout;
|
||||||
class QRadioButton;
|
class QRadioButton;
|
||||||
class QSpinBox;
|
class QSpinBox;
|
||||||
class QString;
|
class QString;
|
||||||
@ -96,7 +96,7 @@ private:
|
|||||||
|
|
||||||
QWidget *prevwidget{nullptr};
|
QWidget *prevwidget{nullptr};
|
||||||
void FixTabOrder(QWidget *);
|
void FixTabOrder(QWidget *);
|
||||||
void CreateOptionUI(QBoxLayout *, QWidget *, const QString& text, QLayout *horizontalLayout = nullptr);
|
void CreateOptionUI(QBoxLayout *, QWidget *, const QString& text, QBoxLayout *horizontalLayout = nullptr);
|
||||||
|
|
||||||
QCheckBox *walletrbf;
|
QCheckBox *walletrbf;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user