aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-07-19 23:43:58 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-07-20 13:52:38 +0000
commite32ebe21468cdd10a7413db0a2a4ee165bdd9f05 (patch)
treef92f016eed8229ffbc917f645dd6319bcd7c5b36 /src/plugins/cpaster
parentae4db886f3b24dc0069d33cf55ba1365c70ccfe9 (diff)
Drop Qt5: Various plugins: Get rid of QOverload
Change-Id: I4913044f8897fd3449dbb537e4af6785eb3ad447 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r--src/plugins/cpaster/pasteselectdialog.cpp2
-rw-r--r--src/plugins/cpaster/pasteview.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/cpaster/pasteselectdialog.cpp b/src/plugins/cpaster/pasteselectdialog.cpp
index 55a33ad570..acf5c98026 100644
--- a/src/plugins/cpaster/pasteselectdialog.cpp
+++ b/src/plugins/cpaster/pasteselectdialog.cpp
@@ -44,7 +44,7 @@ PasteSelectDialog::PasteSelectDialog(const QList<Protocol*> &protocols,
m_ui.protocolBox->addItem(protocol->name());
connect(protocol, &Protocol::listDone, this, &PasteSelectDialog::listDone);
}
- connect(m_ui.protocolBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_ui.protocolBox, &QComboBox::currentIndexChanged,
this, &PasteSelectDialog::protocolChanged);
m_refreshButton = m_ui.buttons->addButton(tr("Refresh"), QDialogButtonBox::ActionRole);
diff --git a/src/plugins/cpaster/pasteview.cpp b/src/plugins/cpaster/pasteview.cpp
index 04c87cda63..61875cc2d2 100644
--- a/src/plugins/cpaster/pasteview.cpp
+++ b/src/plugins/cpaster/pasteview.cpp
@@ -53,8 +53,7 @@ PasteView::PasteView(const QList<Protocol *> &protocols,
foreach (const Protocol *p, protocols)
m_ui.protocolBox->addItem(p->name());
- connect(m_ui.protocolBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, &PasteView::protocolChanged);
+ connect(m_ui.protocolBox, &QComboBox::currentIndexChanged, this, &PasteView::protocolChanged);
}
PasteView::~PasteView() = default;