Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KFind
Commits
47a711bd
Commit
47a711bd
authored
Dec 13, 2021
by
Laurent Montel
😁
Browse files
GIT_SILENT: time to increase version
parent
372a4c40
Pipeline
#109261
passed with stage
in 1 minute and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
47a711bd
...
...
@@ -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.8
5
.0"
)
set
(
KF5_MIN_VERSION
"5.8
9
.0"
)
# ECM setup
find_package
(
ECM
${
KF5_MIN_VERSION
}
CONFIG REQUIRED
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
...
...
src/kfindtreeview.cpp
View file @
47a711bd
...
...
@@ -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
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment