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

Make it compile without kf5 deprecated method

parent 0052b600
......@@ -49,6 +49,7 @@ add_definitions(${QT_DEFINITIONS})
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(sounds)
......
......@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
TopLevel *toplevel=0;
if (app.isSessionRestored())
RESTORE(TopLevel)
kRestoreMainWindows<TopLevel>();
else {
toplevel = new TopLevel();
toplevel->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