Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the KIO dependency
I'm just sick and tired of people complaining krita needs "all of
KDE" because some distributions pull in kwallet just because we
use KIO for registering recently used files with the desktop.
  • Loading branch information
hallarempt committed Nov 20, 2018
1 parent 18a5725 commit 110edc6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions CMakeLists.txt
Expand Up @@ -341,14 +341,6 @@ if (NOT WIN32 AND NOT APPLE)
TYPE OPTIONAL
PURPOSE "Optionally used to provide a dbus api on Linux")

find_package(KF5KIO ${MIN_FRAMEWORKS_VERSION})
macro_bool_to_01(KF5KIO_FOUND HAVE_KIO)
set_package_properties(KF5KIO PROPERTIES
DESCRIPTION "KDE's KIO Framework"
URL "http://api.kde.org/frameworks-api/frameworks5-apidocs/kio/html/index.html"
TYPE OPTIONAL
PURPOSE "Optionally used for recent document handling")

find_package(KF5Crash ${MIN_FRAMEWORKS_VERSION})
macro_bool_to_01(KF5Crash_FOUND HAVE_KCRASH)
set_package_properties(KF5Crash PROPERTIES
Expand Down
3 changes: 0 additions & 3 deletions KoConfig.h.cmake
Expand Up @@ -49,9 +49,6 @@
/* Defines if we use lcms2.4 */
#cmakedefine HAVE_LCMS24 1

/* Defines if KIO is present */
#cmakedefine HAVE_KIO 1

/* Defines if DBUS is present */
#cmakedefine HAVE_DBUS 1

Expand Down
4 changes: 0 additions & 4 deletions libs/ui/CMakeLists.txt
Expand Up @@ -548,10 +548,6 @@ if (HAVE_QT_MULTIMEDIA)
target_link_libraries(kritaui Qt5::Multimedia)
endif()

if (HAVE_KIO)
target_link_libraries(kritaui KF5::KIOCore)
endif()

if (NOT WIN32 AND NOT APPLE)
target_link_libraries(kritaui ${X11_X11_LIB}
${X11_Xinput_LIB}
Expand Down
13 changes: 0 additions & 13 deletions libs/ui/KisMainWindow.cpp
Expand Up @@ -74,9 +74,6 @@
#include "kis_selection_manager.h"
#include "kis_icon_utils.h"

#ifdef HAVE_KIO
#include <krecentdocument.h>
#endif
#include <krecentfilesaction.h>
#include <KoResourcePaths.h>
#include <ktoggleaction.h>
Expand Down Expand Up @@ -724,17 +721,7 @@ void KisMainWindow::addRecentURL(const QUrl &url)
break;
}
}
#ifdef HAVE_KIO
if (ok) {
KRecentDocument::add(QUrl::fromLocalFile(path));
}
#endif
}
#ifdef HAVE_KIO
else {
KRecentDocument::add(url.adjusted(QUrl::StripTrailingSlash));
}
#endif
if (ok) {
d->recentFiles->addUrl(url);
}
Expand Down

0 comments on commit 110edc6

Please sign in to comment.