Commit 47a711bd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: time to increase version

parent 372a4c40
Pipeline #109261 passed with stage
in 1 minute and 9 seconds
......@@ -8,7 +8,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
project(kfind VERSION ${RELEASE_SERVICE_VERSION})
set (KF5_MIN_VERSION "5.85.0")
set (KF5_MIN_VERSION "5.89.0")
# ECM setup
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......
......@@ -37,21 +37,13 @@
// Permission strings
#include <ki18n_version.h>
#if KI18N_VERSION >= QT_VERSION_CHECK(5, 89, 0)
#include <KLazyLocalizedString>
#undef I18N_NOOP
#define I18N_NOOP kli18n
#endif
#if KI18N_VERSION < QT_VERSION_CHECK(5, 89, 0)
static const char *const perm[4] = {
#else
const KLazyLocalizedString perm[4] = {
#endif
I18N_NOOP("Read-write"),
I18N_NOOP("Read-only"),
I18N_NOOP("Write-only"),
I18N_NOOP("Inaccessible")
kli18n("Read-write"),
kli18n("Read-only"),
kli18n("Write-only"),
kli18n("Inaccessible")
};
#define RW 0
#define RO 1
......@@ -249,11 +241,7 @@ KFindItem::KFindItem(const KFileItem &_fileItem, const QString &subDir, const QS
} else {
perm_index = fileInfo.isWritable() ? WO : NA;
}
#if KI18N_VERSION < QT_VERSION_CHECK(5, 89, 0)
m_permission = i18n(perm[perm_index]);
#else
m_permission = KLocalizedString(perm[perm_index]).toString();
#endif
m_icon = QIcon::fromTheme(m_fileItem.iconName());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment