Commit a45e9f56 authored by Laurent Montel's avatar Laurent Montel 😁

make it compile without deprecated methods

parent bcdd6795
......@@ -42,7 +42,10 @@ find_package(KF5KMahjongglib REQUIRED)
find_package(KF5KDEGames 4.9.0 REQUIRED)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000)
endif()
add_subdirectory(src)
add_subdirectory(icons)
add_subdirectory(layouts)
......
......@@ -64,7 +64,7 @@ int main(int argc, char ** argv)
KDBusService service;
if (app.isSessionRestored()) {
RESTORE(KMahjongg)
kRestoreMainWindows<KMahjongg>();
} else {
KMahjongg * window = new KMahjongg();
window->show();
......
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