From 753b39282c8c7f46ef0d0ae44cb15ff5739fecb3 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 10 May 2024 03:58:43 +0300 Subject: [PATCH] kdeui: remove KMainWindow compat bits Signed-off-by: Ivailo Monev --- kdeui/widgets/kmainwindow.h | 38 ------------------------------------- 1 file changed, 38 deletions(-) diff --git a/kdeui/widgets/kmainwindow.h b/kdeui/widgets/kmainwindow.h index 03f74ae4..c593a34e 100644 --- a/kdeui/widgets/kmainwindow.h +++ b/kdeui/widgets/kmainwindow.h @@ -254,7 +254,6 @@ public: * Note that you don't need to deal with this function. Use the * kRestoreMainWindows() convenience template function instead! * @see kRestoreMainWindows() - * @see #RESTORE * @see readProperties() * @see canBeRestored() */ @@ -629,38 +628,6 @@ private: Q_PRIVATE_SLOT(k_func(), void _k_slotSaveAutoSaveSize()) }; -/** - * @def RESTORE - * @ingroup KDEUIMacros - * Restores the last session. (To be used in your main function). - * - * If your client has only one kind of toplevel widgets (which - * should be pretty usual) then you can use this macro, - * which is provided for backwards compatibility with 3.1 and 3.0 - * branches: - * - * \code - * if (qApp->isSessionRestored()) - * RESTORE(childMW) - * else { - * // create default application as usual - * } - * \endcode - * - * The macro expects the type of your toplevel widget as argument. - * - * Since KDE4, you can also use kRestoreMainWindows(), which - * supports also clients with more than one kind of toplevel - * widgets. - * - * @see KMainWindow::restore() - * @see kRestoreMainWindows() - **/ -#define RESTORE(type) { int n = 1;\ - while (KMainWindow::canBeRestored(n)){\ - (new type)->restore(n);\ - n++;}} - /** * Restores the last session. (To be used in your main function). * @@ -683,12 +650,7 @@ private: * call KMainWindow::restore() with the correct arguments. Note that * also QWidget::show() is called implicitly. * - * The global convenience function is a replacement for the #RESTORE - * macro provided in earlier versions of KDE. The old #RESTORE macro - * is still provided for backwards compatibility. - * * @see KMainWindow::restore() - * @see #RESTORE * @see KMainWindow::classNameOfToplevel() **/ template