Commit 8633ed71 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compiles without kf5 deprecated methods

parent 3ab716fa
......@@ -35,6 +35,7 @@ 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( pics )
......
......@@ -66,7 +66,7 @@ main(int argc, char **argv)
KDBusService service;
if (app.isSessionRestored())
RESTORE(MainWindow)
kRestoreMainWindows<MainWindow>();
else {
MainWindow *w = new MainWindow;
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