From 9d5d4d3f7239f5fb39fbb1b110d70a05319d379d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 22 Dec 2022 14:36:22 +0200 Subject: [PATCH] kdeui: remove the compat KApplication::saveYourself() signal now unused Signed-off-by: Ivailo Monev --- kdeui/kernel/kapplication.cpp | 1 - kdeui/kernel/kapplication.h | 30 ------------------------------ 2 files changed, 31 deletions(-) diff --git a/kdeui/kernel/kapplication.cpp b/kdeui/kernel/kapplication.cpp index e3f8a6f8..fcb8a7b9 100644 --- a/kdeui/kernel/kapplication.cpp +++ b/kdeui/kernel/kapplication.cpp @@ -622,7 +622,6 @@ void KApplication::saveState( QSessionManager& sm ) } // finally: do session management - emit saveYourself(); // for compatibility bool canceled = false; foreach(KSessionManager* it, KSessionManager::sessionClients()) { if(canceled) break; diff --git a/kdeui/kernel/kapplication.h b/kdeui/kernel/kapplication.h index 5175e0b8..6e35b49b 100644 --- a/kdeui/kernel/kapplication.h +++ b/kdeui/kernel/kapplication.h @@ -275,36 +275,6 @@ public Q_SLOTS: Q_SCRIPTABLE void reparseConfiguration(); Q_SCRIPTABLE void quit(); -Q_SIGNALS: - /** - Session management asks you to save the state of your application. - - This signal is provided for compatibility only. For new - applications, simply use KMainWindow. By reimplementing - KMainWindow::queryClose(), KMainWindow::saveProperties() and - KMainWindow::readProperties() you can simply handle session - management for applications with multiple toplevel windows. - - For purposes without KMainWindow, create an instance of - KSessionManager and reimplement the functions - KSessionManager::commitData() and/or - KSessionManager::saveState() - - If you still want to use this signal, here is what you should do: - - Connect to this signal in order to save your data. Do NOT - manipulate the UI in that slot, it is blocked by the session - manager. - - Use the sessionConfig() KConfig object to store all your - instance specific data. - - Do not do any closing at this point! The user may still select - Cancel wanting to continue working with your - application. Cleanups could be done after aboutToQuit(). - */ - void saveYourself(); - protected: /** * @internal Used by KUniqueApplication