summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-03 12:24:17 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-03 12:24:17 (GMT)
commite516a21f11e1aab7e13f1ce8c54596a27c0ac2b9 (patch)
tree3a4f4a2c206e50c540d814ecb1e0e678b351a741
parent08b8197f1fd4c5a8f3b0ec5f292d06dc87c7255c (diff)
USe new connect api
-rw-r--r--src/widgets/lineeditwithcompleter.cpp2
-rw-r--r--src/widgets/simplestringlisteditor.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/lineeditwithcompleter.cpp b/src/widgets/lineeditwithcompleter.cpp
index 536a00d..2bae252 100644
--- a/src/widgets/lineeditwithcompleter.cpp
+++ b/src/widgets/lineeditwithcompleter.cpp
@@ -37,7 +37,7 @@ void LineEditWithCompleter::contextMenuEvent(QContextMenuEvent *e)
{
QMenu *popup = KLineEdit::createStandardContextMenu();
popup->addSeparator();
- popup->addAction(QIcon::fromTheme(QStringLiteral("edit-clear-locationbar-rtl")), i18n("Clear History"), this, SLOT(slotClearHistory()));
+ popup->addAction(QIcon::fromTheme(QStringLiteral("edit-clear-locationbar-rtl")), i18n("Clear History"), this, &LineEditWithCompleter::slotClearHistory);
popup->exec(e->globalPos());
delete popup;
}
diff --git a/src/widgets/simplestringlisteditor.cpp b/src/widgets/simplestringlisteditor.cpp
index 8001af4..bbdde0c 100644
--- a/src/widgets/simplestringlisteditor.cpp
+++ b/src/widgets/simplestringlisteditor.cpp
@@ -449,14 +449,14 @@ void SimpleStringListEditor::slotContextMenu(const QPoint &pos)
const bool hasItemsSelected = !lstSelectedItems.isEmpty();
QMenu *menu = new QMenu(this);
if (d->mAddButton) {
- menu->addAction(d->mAddButton->text(), this, SLOT(slotAdd()));
+ menu->addAction(d->mAddButton->text(), this, &SimpleStringListEditor::slotAdd);
}
if (d->mModifyButton && (lstSelectedItems.count() == 1)) {
- menu->addAction(d->mModifyButton->text(), this, SLOT(slotModify()));
+ menu->addAction(d->mModifyButton->text(), this, &SimpleStringListEditor::slotModify);
}
if (d->mRemoveButton && hasItemsSelected) {
menu->addSeparator();
- menu->addAction(d->mRemoveButton->text(), this, SLOT(slotRemove()));
+ menu->addAction(d->mRemoveButton->text(), this, &SimpleStringListEditor::slotRemove);
}
menu->exec(d->mListBox->mapToGlobal(pos));
delete menu;