Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Feb 13, 2025
1 parent fc147a4 commit bcf0333
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ NextcloudAccountDetails::NextcloudAccountDetails(QWidget* parent) : QWidget(pare
tr("Here, results of connection test are shown."));

connect(m_ui.m_spinLimitMessages,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
[=](int value) {
if (value <= 0) {
Expand Down
5 changes: 4 additions & 1 deletion src/librssguard-standard/src/gui/standardaccountdetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ StandardAccountDetails::StandardAccountDetails(QWidget* parent) : QWidget(parent
.arg(QSL(APP_NAME)),
false);

connect(m_ui.m_spinFeedSpacing, &QSpinBox::valueChanged, this, &StandardAccountDetails::onFeedSpacingChanged);
connect(m_ui.m_spinFeedSpacing,
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&StandardAccountDetails::onFeedSpacingChanged);

onFeedSpacingChanged(m_ui.m_spinFeedSpacing->value());
}
Expand Down
2 changes: 1 addition & 1 deletion src/librssguard/gui/dialogs/formdatabasecleanup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FormDatabaseCleanup::FormDatabaseCleanup(QWidget* parent)
GuiUtilities::applyDialogProperties(*this, qApp->icons()->fromTheme(QSL("edit-clear")));

connect(m_ui->m_spinDays,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&FormDatabaseCleanup::updateDaysSuffix);
connect(m_ui->m_btnBox->button(QDialogButtonBox::StandardButton::Ok),
Expand Down
2 changes: 1 addition & 1 deletion src/librssguard/gui/reusable/networkproxydetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ NetworkProxyDetails::NetworkProxyDetails(QWidget* parent) : QWidget(parent), m_u
connect(m_ui->m_txtProxyPassword, &QLineEdit::textChanged, this, &NetworkProxyDetails::changed);
connect(m_ui->m_txtProxyUsername, &QLineEdit::textChanged, this, &NetworkProxyDetails::changed);
connect(m_ui->m_spinProxyPort,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&NetworkProxyDetails::changed);
}
Expand Down
2 changes: 1 addition & 1 deletion src/librssguard/gui/settings/settingsdatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SettingsDatabase::SettingsDatabase(Settings* settings, QWidget* parent)
connect(m_ui->m_txtMysqlPassword->lineEdit(), &QLineEdit::textChanged, this, &SettingsDatabase::dirtifySettings);
connect(m_ui->m_txtMysqlUsername->lineEdit(), &QLineEdit::textChanged, this, &SettingsDatabase::dirtifySettings);
connect(m_ui->m_spinMysqlPort,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsDatabase::dirtifySettings);
connect(m_ui->m_cmbDatabaseDriver,
Expand Down
20 changes: 10 additions & 10 deletions src/librssguard/gui/settings/settingsfeedsmessages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ SettingsFeedsMessages::SettingsFeedsMessages(Settings* settings, QWidget* parent

connect(m_ui->m_cbShowEnclosuresDirectly, &QCheckBox::toggled, this, &SettingsFeedsMessages::dirtifySettings);
connect(m_ui->m_spinHeightImageAttachments,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);

Expand All @@ -87,7 +87,7 @@ SettingsFeedsMessages::SettingsFeedsMessages(Settings* settings, QWidget* parent
this,
&SettingsFeedsMessages::dirtifySettings);
connect(m_ui->m_spinArticleMarkingPolicy,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);
connect(m_ui->m_gbFeedListFont, &QGroupBox::toggled, this, &SettingsFeedsMessages::dirtifySettings);
Expand Down Expand Up @@ -147,34 +147,34 @@ SettingsFeedsMessages::SettingsFeedsMessages(Settings* settings, QWidget* parent
&SettingsFeedsMessages::dirtifySettings);

connect(m_ui->m_spinHeightRowsMessages,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);
connect(m_ui->m_spinHeightRowsMessages,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::requireRestart);

connect(m_ui->m_spinHeightRowsFeeds,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);
connect(m_ui->m_spinHeightRowsFeeds,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::requireRestart);

connect(m_ui->m_spinPaddingRowsMessages,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);
connect(m_ui->m_spinPaddingRowsMessages,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::requireRestart);

connect(m_ui->m_spinRelativeArticleTime,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);

Expand All @@ -184,7 +184,7 @@ SettingsFeedsMessages::SettingsFeedsMessages(Settings* settings, QWidget* parent
m_ui->m_spinStartupUpdateDelay,
&TimeSpinBox::setEnabled);
connect(m_ui->m_spinFeedUpdateTimeout,
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this,
&SettingsFeedsMessages::dirtifySettings);

Expand Down

0 comments on commit bcf0333

Please sign in to comment.