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

Toni Asensi Esteve <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2950465da1ef68d3b35829084f98eff2eac58446 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 QBUTTONGROUP_BUTTONCLICKED

M  +1    -2    app/Panel/sidebar.cpp
M  +0    -14   app/compat.h

https://invent.kde.org/utilities/krusader/-/commit/2950465da1ef68d3b35829084f98eff2eac58446

diff --git a/app/Panel/sidebar.cpp b/app/Panel/sidebar.cpp
index b6cb90fb8..1f3afd038 100644
--- a/app/Panel/sidebar.cpp
+++ b/app/Panel/sidebar.cpp
@@ -13,7 +13,6 @@
 #include "../FileSystem/filesystem.h"
 #include "../KrViewer/diskusageviewer.h"
 #include "../KrViewer/panelviewer.h"
-#include "../compat.h"
 #include "../defaults.h"
 #include "../icon.h"
 #include "PanelView/krview.h"
@@ -53,7 +52,7 @@ Sidebar::Sidebar(QWidget *parent)
 
     btns = new QButtonGroup(this);
     btns->setExclusive(true);
-    connect(btns, QOverload<int>::of(&QButtonGroup::QBUTTONGROUP_BUTTONCLICKED), this, &Sidebar::tabSelected);
+    connect(btns, &QButtonGroup::idClicked, this, &Sidebar::tabSelected);
 
     treeBtn = new QToolButton(this);
     treeBtn->setToolTip(i18n("Tree Panel: a tree view of the local file system"));
diff --git a/app/compat.h b/app/compat.h
index 1b28fed43..617df803f 100644
--- a/app/compat.h
+++ b/app/compat.h
@@ -7,20 +7,6 @@
 #ifndef _COMPAT_H_
 #define _COMPAT_H_
 
-/**
- * QButtonGroup::buttonClicked(int id) was made obsoleted in QT 5.15 in
- * favor of QButtonGroup::idClicked(int id)
- *
- * https://doc.qt.io/qt-5.15/qbuttongroup-obsolete.html#buttonClicked-1
- *
- * This can be removed when the qt minimum version required will be >= 5.15
- */
-#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
-#define QBUTTONGROUP_BUTTONCLICKED idClicked
-#else
-#define QBUTTONGROUP_BUTTONCLICKED buttonClicked
-#endif
-
 /**
  * QResource::isCompressed() was made obsoleted in QT 5.15 in
  * favor of QResource::Compression QResource::compressionAlgorithm()
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.