[utilities/krusader] app: Drop code variants for no longer supported Qt versions

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

Drop code variants for no longer supported Qt versions

M  +0    -4    app/KrViewer/lister.cpp
M  +0    -4    app/Panel/panelfunc.cpp

https://invent.kde.org/utilities/krusader/-/commit/cf3a654d2b0c48b5ad052e5a2c438494302d786f

diff --git a/app/KrViewer/lister.cpp b/app/KrViewer/lister.cpp
index 55e084ed5..8983e0650 100644
--- a/app/KrViewer/lister.cpp
+++ b/app/KrViewer/lister.cpp
@@ -2001,11 +2001,7 @@ void Lister::print()
 
     const QString dateString = QLocale().toString(QDate::currentDate(), QLocale::ShortFormat);
 
-#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
     const QRect pageRect = printer.pageLayout().paintRectPixels(printer.resolution());
-#else
-    const QRect pageRect = printer.pageRect();
-#endif
     const QRect drawingRect(0, 0, pageRect.width(), pageRect.height());
 
     const QFont normalFont = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
diff --git a/app/Panel/panelfunc.cpp b/app/Panel/panelfunc.cpp
index c3f85ae9c..59f63418a 100644
--- a/app/Panel/panelfunc.cpp
+++ b/app/Panel/panelfunc.cpp
@@ -514,11 +514,7 @@ void ListPanelFunc::askEditFile()
         } else {
             // simply create a local file
             // also because KIO::CopyJob::setDefaultPermissions does not work
-#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
             file.open(QIODevice::NewOnly);
-#else
-            file.open(QIODevice::WriteOnly);
-#endif
             file.close();
             slotFileCreated(nullptr, filePath);
             return;
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.