X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=31340cc8b0010f6fe14a244ae9af6edafc3fd192;hb=5c6c9730bd840bcd51f32988dd4e224fed69c85d;hp=d3813816ab3c0a1a4eefe44b919e69ab4e326f5d;hpb=84cd3561e97167ffb98ecab0fd2b884ba1d13ada;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index d3813816..31340cc8 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -62,6 +62,25 @@ int main(int argc, char **argv) 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); + Q_INIT_RESOURCE(hicolor); +#endif + +#ifdef EMBED_DATA + Q_INIT_RESOURCE(i18n); +# ifndef BUILD_CORE + Q_INIT_RESOURCE(data); +# ifdef WITH_OXYGEN + Q_INIT_RESOURCE(oxygen); +# endif +# endif +#endif + AbstractCliParser *cliParser; #ifdef HAVE_KDE @@ -97,6 +116,7 @@ int main(int argc, char **argv) #ifndef BUILD_CORE // put client-only arguments here + cliParser->addOption("icontheme ", 0, "Override the system icon theme ('oxygen' is recommended)"); cliParser->addOption("qss ", 0, "Load a custom application stylesheet"); cliParser->addSwitch("debugbufferswitches", 0, "Enables debugging for bufferswitches"); cliParser->addSwitch("debugmodel", 0, "Enables debugging for models");