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

Make it compile without deprecated method

parent 4e24db81
...@@ -154,8 +154,9 @@ void MainWindow::setupActions() //singleton function ...@@ -154,8 +154,9 @@ void MainWindow::setupActions() //singleton function
action->setIcon(QIcon::fromTheme(QStringLiteral("process-stop"))); action->setIcon(QIcon::fromTheme(QStringLiteral("process-stop")));
ac->setDefaultShortcut(action, Qt::Key_Escape); ac->setDefaultShortcut(action, Qt::Key_Escape);
action = ac->addAction(QStringLiteral("go"), m_combo, action = ac->addAction(QStringLiteral("go"), m_combo, [this]() {
static_cast<void (KHistoryComboBox::*)()>(&KHistoryComboBox::returnPressed)); m_combo->returnPressed(QString());
});
action->setText(i18n("Go")); action->setText(i18n("Go"));
action->setIcon(QIcon::fromTheme(QStringLiteral("go-jump-locationbar"))); action->setIcon(QIcon::fromTheme(QStringLiteral("go-jump-locationbar")));
......
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