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

Make it compiles without kf5 deprecated methods

parent 1cd81b39
......@@ -46,6 +46,7 @@ if (${KF5Config_VERSION} STRGREATER "5.56.0")
endif()
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)
......
......@@ -72,7 +72,7 @@ int main(int argc, char **argv)
KDBusService service;
if (application.isSessionRestored()) {
RESTORE(KReversiMainWindow)
kRestoreMainWindows<KReversiMainWindow>();
} else {
KReversiMainWindow *mainWin = new KReversiMainWindow(0, parser.isSet(QStringLiteral("demo")));
mainWin->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