Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit aeaab56e authored by Elvis Angelaccio's avatar Elvis Angelaccio

Use new syntax for KStandardAction slots

parent 9b769c4a
......@@ -176,7 +176,7 @@ void MainWindow::setupActions()
m_openAction = actionCollection()->addAction(KStandardAction::Open, QStringLiteral("ark_file_open"), this, SLOT(openArchive()));
actionCollection()->addAction(KStandardAction::Quit, QStringLiteral("ark_quit"), this, SLOT(quit()));
m_recentFilesAction = KStandardAction::openRecent(this, SLOT(openUrl(QUrl)), nullptr);
m_recentFilesAction = KStandardAction::openRecent(this, &MainWindow::openUrl, nullptr);
actionCollection()->addAction(QStringLiteral("ark_file_open_recent"), m_recentFilesAction);
m_recentFilesAction->setToolBarMode(KRecentFilesAction::MenuMode);
......@@ -185,7 +185,7 @@ void MainWindow::setupActions()
m_recentFilesAction->setToolTip(i18n("Open an archive"));
m_recentFilesAction->loadEntries(KSharedConfig::openConfig()->group("Recent Files"));
KStandardAction::preferences(this, SLOT(showSettings()), actionCollection());
KStandardAction::preferences(this, &MainWindow::showSettings, actionCollection());
}
void MainWindow::updateActions()
......
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