X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=7884dfa686e0716e08b17f856d251154ebe661cf;hb=9911c69e8ea76e13a0627f2417570cff1fad0a32;hp=149167cff0bedb9473ec05b6d8f879600062befa;hpb=ce26c3770b254362c7bd1e094ba8f8bf22133653;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index 149167cf..7884dfa6 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -57,6 +57,31 @@ int main(int argc, char **argv) QCoreApplication::setOrganizationName(Quassel::buildInfo().organizationName); QCoreApplication::setOrganizationDomain(Quassel::buildInfo().organizationDomain); + // on OSX with Qt4, raster seems to fix performance issues +#if QT_VERSION < 0x050000 && defined Q_OS_MAC && !defined BUILD_CORE + QApplication::setGraphicsSystem("raster"); +#endif + + // We need to explicitly initialize the required resources when linking statically +#ifndef BUILD_QTUI + Q_INIT_RESOURCE(sql); +#endif +#ifndef BUILD_CORE + Q_INIT_RESOURCE(pics); // always in a resource, for now +#endif + +#ifdef EMBED_DATA + Q_INIT_RESOURCE(i18n); +# ifndef BUILD_CORE + Q_INIT_RESOURCE(data); + Q_INIT_RESOURCE(hicolor); + Q_INIT_RESOURCE(oxygen); +# ifdef WITH_OXYGEN + Q_INIT_RESOURCE(oxygen_kde); +# endif +# endif +#endif + AbstractCliParser *cliParser; #ifdef HAVE_KDE