From dc8c4aafbe380e75dbe018a49e840c3f6319ac96 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 14 Apr 2024 22:40:15 +0200 Subject: [PATCH] Port KStandardAction usage to new connection syntax --- krfb/mainwindow.cpp | 4 ++-- krfb/trayicon.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/krfb/mainwindow.cpp b/krfb/mainwindow.cpp index 681234f8..0ddeb3cc 100644 --- a/krfb/mainwindow.cpp +++ b/krfb/mainwindow.cpp @@ -145,8 +145,8 @@ MainWindow::MainWindow(QWidget *parent) m_ui.passwordDisplayLabel->setText( InvitationsRfbServer::instance->desktopPassword()); - KStandardAction::quit(QCoreApplication::instance(), SLOT(quit()), actionCollection()); - KStandardAction::preferences(this, SLOT(showConfiguration()), actionCollection()); + KStandardAction::quit(QCoreApplication::instance(), &QCoreApplication::quit, actionCollection()); + KStandardAction::preferences(this, &MainWindow::showConfiguration, actionCollection()); setupGUI(); diff --git a/krfb/trayicon.cpp b/krfb/trayicon.cpp index ba949c38..245419f8 100644 --- a/krfb/trayicon.cpp +++ b/krfb/trayicon.cpp @@ -106,7 +106,7 @@ TrayIcon::TrayIcon(QWidget *mainWindow) connect(RfbServerManager::instance(), &RfbServerManager::clientDisconnected, this, &TrayIcon::onClientDisconnected); - m_aboutAction = KStandardAction::aboutApp(this, SLOT(showAbout()), this); + m_aboutAction = KStandardAction::aboutApp(this, &TrayIcon::showAbout, this); contextMenu()->addAction(m_aboutAction); }