Commit a22b9cd9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to use qOverload here

parent 845a43fe
Pipeline #82768 passed with stage
in 18 minutes and 12 seconds
......@@ -65,7 +65,7 @@ void SessionThread::doInit()
Q_ASSERT(QThread::currentThread() == thread());
m_socket = std::make_unique<QSslSocket>();
connect(m_socket.get(), &QSslSocket::readyRead, this, &SessionThread::slotDataReceived);
connect(m_socket.get(), qOverload<QAbstractSocket::SocketError>(&QAbstractSocket::errorOccurred), this, &SessionThread::slotSocketError);
connect(m_socket.get(), &QAbstractSocket::errorOccurred, this, &SessionThread::slotSocketError);
connect(m_socket.get(), &QSslSocket::disconnected, this, &SessionThread::socketDisconnected);
connect(m_socket.get(), &QSslSocket::connected, this, &SessionThread::socketConnected);
}
......
......@@ -64,7 +64,7 @@ void SelectConvertParameterWidget::initialize()
mWidth->setMaximum(9999);
mWidth->setValue(300);
hbox->addWidget(mWidth);
connect(mWidth, qOverload<int>(&QSpinBox::valueChanged), this, &SelectConvertParameterWidget::valueChanged);
connect(mWidth, &QSpinBox::valueChanged, this, &SelectConvertParameterWidget::valueChanged);
auto lab = new QLabel(QStringLiteral("x"), this);
hbox->addWidget(lab);
......@@ -76,5 +76,5 @@ void SelectConvertParameterWidget::initialize()
mHeight->setValue(200);
hbox->addWidget(mHeight);
connect(mHeight, qOverload<int>(&QSpinBox::valueChanged), this, &SelectConvertParameterWidget::valueChanged);
connect(mHeight, &QSpinBox::valueChanged, this, &SelectConvertParameterWidget::valueChanged);
}
......@@ -16,7 +16,7 @@ SelectMatchTypeComboBox::SelectMatchTypeComboBox(SieveEditorGraphicalModeWidget
{
mHasRegexCapability = sieveGraphicalModeWidget->sieveCapabilities().contains(QLatin1String("regex"));
initialize();
connect(this, qOverload<int>(&SelectMatchTypeComboBox::activated), this, &SelectMatchTypeComboBox::slotValueChanged);
connect(this, &SelectMatchTypeComboBox::activated, this, &SelectMatchTypeComboBox::slotValueChanged);
}
SelectMatchTypeComboBox::~SelectMatchTypeComboBox()
......
......@@ -14,7 +14,7 @@ SelectMimeTypeComboBox::SelectMimeTypeComboBox(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectMimeTypeComboBox::activated), this, &SelectMimeTypeComboBox::valueChanged);
connect(this, &SelectMimeTypeComboBox::activated, this, &SelectMimeTypeComboBox::valueChanged);
}
SelectMimeTypeComboBox::~SelectMimeTypeComboBox()
......
......@@ -37,7 +37,7 @@ QWidget *SieveActionExtractText::createParamWidget(QWidget *parent) const
nbCharacters->setMaximum(99999);
nbCharacters->setObjectName(QStringLiteral("numberOfCharacters"));
grid->addWidget(nbCharacters, 0, 1);
connect(nbCharacters, qOverload<int>(&QSpinBox::valueChanged), this, &SieveActionExtractText::valueChanged);
connect(nbCharacters, &QSpinBox::valueChanged, this, &SieveActionExtractText::valueChanged);
lab = new QLabel(i18n("Stored in variable name:"));
grid->addWidget(lab, 1, 0);
......
......@@ -51,7 +51,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
day->setMinimum(1);
day->setMaximum(999);
day->setObjectName(QStringLiteral("day"));
connect(day, qOverload<int>(&QSpinBox::valueChanged), this, &SieveActionVacation::valueChanged);
connect(day, &QSpinBox::valueChanged, this, &SieveActionVacation::valueChanged);
grid->addWidget(day, 0, 1);
lab = new QLabel(i18n("Message subject:"));
......
......@@ -13,7 +13,7 @@ SelectAddHeaderPositionCombobox::SelectAddHeaderPositionCombobox(QWidget *parent
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectAddHeaderPositionCombobox::activated), this, &SelectAddHeaderPositionCombobox::valueChanged);
connect(this, &SelectAddHeaderPositionCombobox::activated, this, &SelectAddHeaderPositionCombobox::valueChanged);
}
SelectAddHeaderPositionCombobox::~SelectAddHeaderPositionCombobox()
......
......@@ -14,7 +14,7 @@ SelectImportanceCombobox::SelectImportanceCombobox(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectImportanceCombobox::activated), this, &SelectImportanceCombobox::valueChanged);
connect(this, &SelectImportanceCombobox::activated, this, &SelectImportanceCombobox::valueChanged);
}
SelectImportanceCombobox::~SelectImportanceCombobox()
......
......@@ -14,7 +14,7 @@ SelectVacationComboBox::SelectVacationComboBox(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectVacationComboBox::activated), this, &SelectVacationComboBox::valueChanged);
connect(this, &SelectVacationComboBox::activated, this, &SelectVacationComboBox::valueChanged);
}
SelectVacationComboBox::~SelectVacationComboBox()
......
......@@ -14,7 +14,7 @@ SelectVariableModifierComboBox::SelectVariableModifierComboBox(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectVariableModifierComboBox::activated), this, &SelectVariableModifierComboBox::valueChanged);
connect(this, &SelectVariableModifierComboBox::activated, this, &SelectVariableModifierComboBox::valueChanged);
}
SelectVariableModifierComboBox::~SelectVariableModifierComboBox()
......
......@@ -54,7 +54,7 @@ QWidget *SieveConditionSpamTest::createParamWidget(QWidget *parent) const
spinbox->setMaximum(10);
spinbox->setMinimum(0);
spinbox->setObjectName(QStringLiteral("value"));
connect(spinbox, qOverload<int>(&QSpinBox::valueChanged), this, &SieveConditionSpamTest::valueChanged);
connect(spinbox, &QSpinBox::valueChanged, this, &SieveConditionSpamTest::valueChanged);
lay->addWidget(spinbox);
return w;
}
......
......@@ -44,7 +44,7 @@ QWidget *SieveConditionVirusTest::createParamWidget(QWidget *parent) const
spinbox->setMaximum(5);
spinbox->setMinimum(0);
spinbox->setObjectName(QStringLiteral("value"));
connect(spinbox, qOverload<int>(&QSpinBox::valueChanged), this, &SieveConditionVirusTest::valueChanged);
connect(spinbox, &QSpinBox::valueChanged, this, &SieveConditionVirusTest::valueChanged);
lay->addWidget(spinbox);
return w;
}
......
......@@ -16,7 +16,7 @@ SelectAddressPartComboBox::SelectAddressPartComboBox(SieveEditorGraphicalModeWid
{
mHasSubaddressCapability = sieveGraphicalModeWidget->sieveCapabilities().contains(QLatin1String("subaddress"));
initialize();
connect(this, qOverload<int>(&SelectAddressPartComboBox::activated), this, &SelectAddressPartComboBox::valueChanged);
connect(this, &SelectAddressPartComboBox::activated, this, &SelectAddressPartComboBox::valueChanged);
}
SelectAddressPartComboBox::~SelectAddressPartComboBox()
......
......@@ -11,7 +11,7 @@ using namespace KSieveUi;
SelectComparatorComboBox::SelectComparatorComboBox(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QWidget *parent)
: QComboBox(parent)
{
connect(this, qOverload<int>(&SelectComparatorComboBox::activated), this, &SelectComparatorComboBox::valueChanged);
connect(this, &SelectComparatorComboBox::activated, this, &SelectComparatorComboBox::valueChanged);
initialize(sieveGraphicalModeWidget->sieveCapabilities());
}
......
......@@ -65,7 +65,7 @@ void SelectDateWidget::initialize()
mDateValue = new SieveDateSpinBox(this);
mStackWidget->addWidget(mDateValue);
connect(mDateValue, qOverload<int>(&QSpinBox::valueChanged), this, &SelectDateWidget::valueChanged);
connect(mDateValue, &QSpinBox::valueChanged, this, &SelectDateWidget::valueChanged);
mDateEdit = new KDateComboBox(this);
mStackWidget->addWidget(mDateEdit);
......
......@@ -201,7 +201,7 @@ SelectHeaderTypeComboBox::SelectHeaderTypeComboBox(bool onlyEnvelopType, QWidget
initialize(onlyEnvelopType);
connect(this, &SelectHeaderTypeComboBox::textActivated, this, &SelectHeaderTypeComboBox::slotSelectItem);
connect(this, &SelectHeaderTypeComboBox::editTextChanged, this, &SelectHeaderTypeComboBox::valueChanged);
connect(this, qOverload<int>(&SelectHeaderTypeComboBox::activated), this, &SelectHeaderTypeComboBox::valueChanged);
connect(this, &SelectHeaderTypeComboBox::activated, this, &SelectHeaderTypeComboBox::valueChanged);
}
SelectHeaderTypeComboBox::~SelectHeaderTypeComboBox()
......
......@@ -14,7 +14,7 @@ SelectMimeComboBox::SelectMimeComboBox(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectMimeComboBox::activated), this, &SelectMimeComboBox::valueChanged);
connect(this, &SelectMimeComboBox::activated, this, &SelectMimeComboBox::valueChanged);
}
SelectMimeComboBox::~SelectMimeComboBox()
......
......@@ -14,7 +14,7 @@ SelectSizeTypeComboBox::SelectSizeTypeComboBox(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SelectSizeTypeComboBox::activated), this, &SelectSizeTypeComboBox::valueChanged);
connect(this, &SelectSizeTypeComboBox::activated, this, &SelectSizeTypeComboBox::valueChanged);
}
SelectSizeTypeComboBox::~SelectSizeTypeComboBox()
......
......@@ -23,7 +23,7 @@ SelectSizeWidget::SelectSizeWidget(QWidget *parent)
mSpinBoxSize->setMinimum(1);
mSpinBoxSize->setMaximum(99999);
hbox->addWidget(mSpinBoxSize);
connect(mSpinBoxSize, qOverload<int>(&QSpinBox::valueChanged), this, &SelectSizeWidget::valueChanged);
connect(mSpinBoxSize, &QSpinBox::valueChanged, this, &SelectSizeWidget::valueChanged);
connect(mSelectSizeType, &SelectSizeTypeComboBox::valueChanged, this, &SelectSizeWidget::valueChanged);
hbox->addWidget(mSelectSizeType);
......
......@@ -33,7 +33,7 @@ SieveIncludeLocation::SieveIncludeLocation(QWidget *parent)
: QComboBox(parent)
{
initialize();
connect(this, qOverload<int>(&SieveIncludeLocation::activated), this, &SieveIncludeLocation::valueChanged);
connect(this, &SieveIncludeLocation::activated, this, &SieveIncludeLocation::valueChanged);
}
SieveIncludeLocation::~SieveIncludeLocation()
......
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