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

Make it compile without deprecated methods

parent 6c0c942f
......@@ -66,9 +66,11 @@ set_package_properties(KF5Purpose PROPERTIES
add_definitions(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050900
-DQT_NO_URL_CAST_FROM_STRING
)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
endif()
#########################################################################
......
......@@ -45,7 +45,7 @@ FileSystemNoteLoader::FileSystemNoteLoader()
const QString genericDataLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
const QString suffix = QStringLiteral("plasma_notes");
QDir(genericDataLocation).mkdir(suffix);
m_notesDir = genericDataLocation + QDir::separator() + suffix;
m_notesDir.setPath(genericDataLocation + QDir::separator() + suffix);
}
......
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