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
KBackup
Commits
a1590e56
Commit
a1590e56
authored
Sep 15, 2020
by
Laurent Montel
😁
Browse files
Make it compile with QT_NO_KEYWORDS
parent
cff5f253
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a1590e56
...
...
@@ -15,6 +15,7 @@ find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
add_definitions
(
-DTRANSLATION_DOMAIN=
"kbackup"
-DKBACKUP_VERSION=
"
${
RELEASE_SERVICE_VERSION
}
"
)
add_definitions
(
-DQT_NO_KEYWORDS
)
include
(
KDEInstallDirs
)
include
(
KDEFrameworkCompilerSettings NO_POLICY_SCOPE
)
...
...
src/Archiver.cxx
View file @
a1590e56
This diff is collapsed.
Click to expand it.
src/Selector.cxx
View file @
a1590e56
...
...
@@ -682,9 +682,9 @@ void Selector::populateOpenMenu()
KFileItem
fileItem
(
sourceUrl
);
QString
mimeType
(
fileItem
.
determineMimeType
().
name
());
KService
::
List
services
=
KMimeTypeTrader
::
self
()
->
query
(
mimeType
);
const
KService
::
List
services
=
KMimeTypeTrader
::
self
()
->
query
(
mimeType
);
for
each
(
const
KService
::
Ptr
&
service
,
services
)
for
(
const
KService
::
Ptr
&
service
:
services
)
{
QString
text
=
service
->
name
().
replace
(
QLatin1Char
(
'&'
),
QStringLiteral
(
"&&"
));
QAction
*
action
=
openWithSubMenu
->
addAction
(
text
);
...
...
Write
Preview
Markdown
is supported
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