Commit a57ca197 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Install korgac icon into main hicolor icon

This allows the icon being found without KIconLoader-specific code
parent 894b090b
......@@ -32,7 +32,6 @@
#include <MailTransport/TransportManager>
#include <KConfigGroup>
#include <KIconLoader>
#include <KLocalizedString>
#include <KMessageBox>
#include <KNotification>
......@@ -122,8 +121,6 @@ AlarmDialog::AlarmDialog(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *par
changer->setShowDialogsOnError(false);
}
KIconLoader::global()->addAppDir(QStringLiteral("korgac"));
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup generalConfig(config, "General");
......
......@@ -39,7 +39,6 @@ AlarmDockWindow::AlarmDockWindow()
setTitle(mName);
// Set up icons
KIconLoader::global()->addAppDir(QStringLiteral("korgac"));
const QString iconPath = KIconLoader::global()->iconPath(QStringLiteral("korgac"), KIconLoader::Panel);
const QIcon iconEnabled = QIcon(iconPath);
if (iconEnabled.isNull()) {
......
ecm_install_icons(ICONS 128-apps-korgac.png 16-apps-korgac.png 22-apps-korgac.png 256-apps-korgac.png 32-apps-korgac.png 64-apps-korgac.png DESTINATION ${KDE_INSTALL_DATADIR}/korgac/icons THEME hicolor)
ecm_install_icons(ICONS 128-apps-korgac.png 16-apps-korgac.png 22-apps-korgac.png 256-apps-korgac.png 32-apps-korgac.png 64-apps-korgac.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor)
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