Commit 03bd043f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without kf5 deprecated method

parent 1ed424a3
...@@ -40,6 +40,7 @@ include(ECMAddAppIcon) ...@@ -40,6 +40,7 @@ include(ECMAddAppIcon)
include(ECMSetupVersion) include(ECMSetupVersion)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git") if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000)
endif() endif()
add_definitions( add_definitions(
......
...@@ -84,7 +84,7 @@ int main(int argc, char **argv) ...@@ -84,7 +84,7 @@ int main(int argc, char **argv)
KDBusService service; KDBusService service;
if (app.isSessionRestored()) if (app.isSessionRestored())
RESTORE(KBounceMainWindow) kRestoreMainWindows<KBounceMainWindow>();
else { else {
KBounceMainWindow *w = new KBounceMainWindow; KBounceMainWindow *w = new KBounceMainWindow;
w->show(); w->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