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

Make it compiles against kf5.89

parent 584fce87
Pipeline #113768 passed with stage
in 47 seconds
......@@ -49,7 +49,7 @@ if (BUILD_KPACKAGE_INSTALL_HANDLERS)
find_package(AppStreamQt 0.10.4)
endif()
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055100)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900)
add_subdirectory(src)
if (BUILD_TESTING)
add_subdirectory(autotests)
......
......@@ -70,7 +70,7 @@ int main(int argc, char **argv)
Q_ASSERT(url.scheme() == QLatin1String("kns"));
QString knsname;
for (const auto &location : KNSCore::Engine::configSearchLocations(true)) {
for (const auto &location : KNSCore::Engine::availableConfigFiles()) {
QString candidate = location + QLatin1Char('/') + url.host();
if (QFile::exists(candidate)) {
knsname = candidate;
......
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