[utilities/krusader] app: Dissolve no longer needed compat helper macro KACTIONMENU_SETDELAYED

Toni Asensi Esteve <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 35c8c199666c8e8b2289fbfcffd64a405fd8f2de by Toni Asensi Esteve, on behalf of Friedrich W. H. Kossebau.
Committed on 19/07/2026 at 23:02.
Pushed by asensi into branch 'master'.

Dissolve no longer needed compat helper macro KACTIONMENU_SETDELAYED

M  +1    -2    app/BookMan/krbookmarkbutton.cpp
M  +0    -14   app/compat.h

https://invent.kde.org/utilities/krusader/-/commit/35c8c199666c8e8b2289fbfcffd64a405fd8f2de

diff --git a/app/BookMan/krbookmarkbutton.cpp b/app/BookMan/krbookmarkbutton.cpp
index 875e2eaa2..670512763 100644
--- a/app/BookMan/krbookmarkbutton.cpp
+++ b/app/BookMan/krbookmarkbutton.cpp
@@ -7,7 +7,6 @@
 */
 
 #include "krbookmarkbutton.h"
-#include "../compat.h"
 #include "../icon.h"
 #include "../krglobal.h"
 #include "krbookmarkhandler.h"
@@ -31,7 +30,7 @@ KrBookmarkButton::KrBookmarkButton(QWidget *parent)
     setAcceptDrops(false);
 
     acmBookmarks = new KActionMenu(Icon("bookmarks"), i18n("Bookmarks"), this);
-    acmBookmarks->KACTIONMENU_SETDELAYED;
+    acmBookmarks->setPopupMode(QToolButton::InstantPopup);
 
     setMenu(acmBookmarks->menu());
     connect(acmBookmarks->menu(), &QMenu::aboutToShow, this, &KrBookmarkButton::populate);
diff --git a/app/compat.h b/app/compat.h
index d87bd2bf7..0f924fd22 100644
--- a/app/compat.h
+++ b/app/compat.h
@@ -7,23 +7,9 @@
 #ifndef _COMPAT_H_
 #define _COMPAT_H_
 
-#include <kio_version.h>
-
 #include <karchive_version.h>
 #include <kcompletion_version.h>
 
-/**
- * KActionMenu::setDelayed(bool) was made deprecated since 5.77 in
- * favor of KActionMenu::setPopupMode(QToolButton::ToolButtonPopupMode)
- *
- * This can be removed when the frameworks minimum version required will be >= 5.77
- */
-#if KIO_VERSION >= QT_VERSION_CHECK(5, 77, 0)
-#define KACTIONMENU_SETDELAYED setPopupMode(QToolButton::InstantPopup)
-#else
-#define KACTIONMENU_SETDELAYED setDelayed(false)
-#endif
-
 /**
  * KLineEdit::returnPressed has been deprecated since 5.81
  * in favor of KLineEdit::returnKeyPressed.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.