[utilities/krusader] app: Dissolve no longer needed compat helper macro KLINEEDIT_RETURNKEYPRESSED
Toni Asensi Esteve <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 9f1b4b391892460221e2673770fdf14b3ad78d00 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 KLINEEDIT_RETURNKEYPRESSED
M +1 -2 app/Dialogs/kurllistrequester.cpp
M +1 -2 app/KrViewer/lister.cpp
M +0 -13 app/compat.h
https://invent.kde.org/utilities/krusader/-/commit/9f1b4b391892460221e2673770fdf14b3ad78d00
diff --git a/app/Dialogs/kurllistrequester.cpp b/app/Dialogs/kurllistrequester.cpp
index 8442bba0f..ad69c75af 100644
--- a/app/Dialogs/kurllistrequester.cpp
+++ b/app/Dialogs/kurllistrequester.cpp
@@ -7,7 +7,6 @@
#include "kurllistrequester.h"
#include "../FileSystem/filesystem.h"
-#include "../compat.h"
#include "../icon.h"
// QtGui
@@ -61,7 +60,7 @@ KURLListRequester::KURLListRequester(Mode requestMode, QWidget *parent)
connect(urlAddBtn, &QToolButton::clicked, this, &KURLListRequester::slotAdd);
connect(urlBrowseBtn, &QToolButton::clicked, this, &KURLListRequester::slotBrowse);
- connect(urlLineEdit, &KLineEdit::KLINEEDIT_RETURNKEYPRESSED, this, &KURLListRequester::slotAdd);
+ connect(urlLineEdit, &KLineEdit::returnKeyPressed, this, &KURLListRequester::slotAdd);
connect(urlListBox, &KrListWidget::itemRightClicked, this, &KURLListRequester::slotRightClicked);
connect(urlLineEdit, &KLineEdit::textChanged, this, &KURLListRequester::changed);
}
diff --git a/app/KrViewer/lister.cpp b/app/KrViewer/lister.cpp
index b79652828..55e084ed5 100644
--- a/app/KrViewer/lister.cpp
+++ b/app/KrViewer/lister.cpp
@@ -51,7 +51,6 @@
#include <KSharedConfig>
#include "../GUI/krremoteencodingmenu.h"
-#include "../compat.h"
#include "../icon.h"
#include "../kractions.h"
#include "../krglobal.h"
@@ -1278,7 +1277,7 @@ Lister::Lister(QWidget *parent)
_originalBackground = _searchLineEdit->palette().color(QPalette::Base);
_originalForeground = _searchLineEdit->palette().color(QPalette::Text);
- connect(_searchLineEdit, &KLineEdit::KLINEEDIT_RETURNKEYPRESSED, this, &Lister::searchNext);
+ connect(_searchLineEdit, &KLineEdit::returnKeyPressed, this, &Lister::searchNext);
connect(_searchLineEdit, &KLineEdit::textChanged, this, &Lister::searchTextChanged);
hbox->addWidget(_searchLineEdit);
diff --git a/app/compat.h b/app/compat.h
index 0f924fd22..7631d60cd 100644
--- a/app/compat.h
+++ b/app/compat.h
@@ -8,19 +8,6 @@
#define _COMPAT_H_
#include <karchive_version.h>
-#include <kcompletion_version.h>
-
-/**
- * KLineEdit::returnPressed has been deprecated since 5.81
- * in favor of KLineEdit::returnKeyPressed.
- *
- * This can be removed when the frameworks minimum version required will be >= 5.81
- */
-#if KCOMPLETION_VERSION >= QT_VERSION_CHECK(5, 81, 0)
-#define KLINEEDIT_RETURNKEYPRESSED returnKeyPressed
-#else
-#define KLINEEDIT_RETURNKEYPRESSED returnPressed
-#endif
/**
* KFilterDev::compressionTypeForMimeType has been deprecated since 5.85