#include "qtuiapplication.h"
+#include <QIcon>
#include <QStringList>
#ifdef HAVE_KDE
#endif /* HAVE_KDE || Q_OS_MAC */
setRunMode(Quassel::ClientOnly);
+#if QT_VERSION < 0x050000
qInstallMsgHandler(Client::logMessage);
+#else
+ qInstallMessageHandler(Client::logMessage);
+#endif
}
return false;
}
+ // Set the icon theme
+ if (Quassel::isOptionSet("icontheme"))
+ QIcon::setThemeName(Quassel::optionValue("icontheme"));
+ else if (QIcon::themeName().isEmpty())
+ // Some platforms don't set a default icon theme; chances are we can find our bundled Oxygen theme though
+ QIcon::setThemeName("oxygen");
+
// session resume
QtUi *gui = new QtUi();
Client::init(gui);