Commit 37801d0b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Simplify signals

parent cb9090b4
Pipeline #61955 passed with stage
in 8 minutes and 17 seconds
......@@ -57,8 +57,8 @@ GeneralConfigurationWidget::GeneralConfigurationWidget()
startupLogMode->addItem(logMode->icon(), logMode->name(), QVariant(logMode->id()));
}
connect(startupLogMode, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &GeneralConfigurationWidget::configurationChanged);
connect(maxLines, QOverload<int>::of(&QSpinBox::valueChanged), this, &GeneralConfigurationWidget::configurationChanged);
connect(startupLogMode, &QComboBox::currentIndexChanged, this, &GeneralConfigurationWidget::configurationChanged);
connect(maxLines, &QSpinBox::valueChanged, this, &GeneralConfigurationWidget::configurationChanged);
connect(deleteDuplicatedLines, &QAbstractButton::clicked, this, &GeneralConfigurationWidget::configurationChanged);
......@@ -71,7 +71,7 @@ GeneralConfigurationWidget::GeneralConfigurationWidget()
mDateFormatGroup->addButton(formatShortDate, Globals::ShortFormat);
mDateFormatGroup->addButton(formatPreciseDate, Globals::PreciseFormat);
connect(mDateFormatGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &GeneralConfigurationWidget::configurationChanged);
connect(mDateFormatGroup, &QButtonGroup::buttonClicked, this, &GeneralConfigurationWidget::configurationChanged);
addDateFormatExample();
}
......
......@@ -38,7 +38,7 @@ JournaldConfigurationWidget::JournaldConfigurationWidget()
connect(remoteJournalsListWidget, &QTableWidget::itemSelectionChanged, this, &JournaldConfigurationWidget::updateButtons);
connect(lastBootOnly, &QCheckBox::stateChanged, this, &JournaldConfigurationWidget::configurationChanged);
connect(entriesTypeComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &JournaldConfigurationWidget::configurationChanged);
connect(entriesTypeComboBox, &QComboBox::currentIndexChanged, this, &JournaldConfigurationWidget::configurationChanged);
connect(addAddressButton, &QPushButton::clicked, this, &JournaldConfigurationWidget::addRemoteJournal);
connect(modifyAddressButton, &QPushButton::clicked, this, &JournaldConfigurationWidget::modifyRemoteJournal);
......
......@@ -46,7 +46,7 @@ StatusBar::StatusBar(QWidget *parent)
mMessageList = new QComboBox(this);
mMessageList->setInsertPolicy(QComboBox::InsertAtTop);
mMessageList->setMaxVisibleItems(5);
connect(mMessageList, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &StatusBar::selectLastHistory);
connect(mMessageList, &QComboBox::currentIndexChanged, this, &StatusBar::selectLastHistory);
addPermanentWidget(mMessageList, 4);
mLastModificationLabel = new QLabel(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment