Commit 0b43c3d4 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Partly port away from KIconThemes

Instead of passing a pixmap to the notification jsut pass the icon name.
That's better anyway.

Remove includes and linkage where possible
parent feabab18
Pipeline #162718 passed with stage
in 4 minutes
......@@ -370,7 +370,6 @@ target_link_libraries(kget
KF5::I18n
KF5::Completion
KF5::CoreAddons
KF5::IconThemes
KF5::ItemViews
KF5::KCMUtils
KF5::NotifyConfig
......
......@@ -36,7 +36,6 @@
#include <KMessageBox>
#include <KLocalizedString>
#include <KIconLoader>
#include <KActionCollection>
#include <KIO/RenameDialog>
#include <KIO/DeleteJob>
......@@ -1273,7 +1272,7 @@ bool KGet::safeDeleteFile( const QUrl& url )
KNotification *KGet::showNotification(QWidget *parent, const QString &eventType,
const QString &text, const QString &icon, const QString &title, const KNotification::NotificationFlags &flags)
{
return KNotification::event(eventType, title, text, QIcon::fromTheme(icon).pixmap(KIconLoader::SizeMedium), parent, flags);
return KNotification::event(eventType, title, text, icon, parent, flags);
}
GenericObserver::GenericObserver(QObject *parent)
......
Supports Markdown
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