Commit a1590e56 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile with QT_NO_KEYWORDS

parent cff5f253
......@@ -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)
......
This diff is collapsed.
......@@ -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);
foreach (const KService::Ptr &service, services)
for (const KService::Ptr &service : services)
{
QString text = service->name().replace(QLatin1Char('&'), QStringLiteral("&&"));
QAction* action = openWithSubMenu->addAction(text);
......
Markdown is supported
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