mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Qt: set min version to 5.14
This commit is contained in:
parent
d3abff5486
commit
5d82b0f4c4
4 changed files with 4 additions and 25 deletions
|
@ -505,11 +505,7 @@ void emu_settings::EnhanceSpinBox(QSpinBox* spinbox, SettingsType type, const QS
|
|||
spinbox->setRange(min, max);
|
||||
spinbox->setValue(val);
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
|
||||
connect(spinbox, &QSpinBox::textChanged, [=](const QString&/* text*/)
|
||||
#else
|
||||
connect(spinbox, QOverload<const QString &>::of(&QSpinBox::valueChanged), [=](const QString&/* value*/)
|
||||
#endif
|
||||
{
|
||||
SetSetting(type, sstr(spinbox->cleanText()));
|
||||
});
|
||||
|
@ -551,11 +547,7 @@ void emu_settings::EnhanceDoubleSpinBox(QDoubleSpinBox* spinbox, SettingsType ty
|
|||
spinbox->setRange(min, max);
|
||||
spinbox->setValue(val);
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
|
||||
connect(spinbox, &QDoubleSpinBox::textChanged, [=](const QString&/* text*/)
|
||||
#else
|
||||
connect(spinbox, QOverload<const QString &>::of(&QDoubleSpinBox::valueChanged), [=](const QString&/* value*/)
|
||||
#endif
|
||||
{
|
||||
SetSetting(type, sstr(spinbox->cleanText()));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue