From: Manuel Nickschas Date: Sun, 28 Sep 2008 20:37:38 +0000 (+0200) Subject: Revert "Try to fix icons not being found on some systems" X-Git-Tag: 0.3.1~222 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5776e0207b629451fec7ba3c25e0b221e3b42508;hp=3a9b5f8368e5a1eada4b60e6016cba367de3bac2 Revert "Try to fix icons not being found on some systems" Not needed, as the cause for that problem was a different one This reverts commit 168309311415f27f1c7015805637b50a01b43c1e. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d165e626..bf3a92f7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,23 +1,5 @@ # Builds the three main targets -# Define resources for icons and pics, if needed -# We always add stuff in :/pics -qt4_add_resources(CLIENT_DEPS ../pics/pics.qrc) - -if(QUASSEL_ICONS MATCHES "Builtin") - set(CLIENT_DEPS ${CLIENT_DEPS} ../icons/qrc_hicolor.cxx) - set_source_files_properties(../icons/qrc_hicolor.cxx PROPERTIES GENERATED true) - add_definitions(-DQUASSEL_ICONS_BUILTIN) -endif(QUASSEL_ICONS MATCHES "Builtin") - -if(OXYGEN_ICONS MATCHES "Builtin") - set(CLIENT_DEPS ${CLIENT_DEPS} ../icons/qrc_oxygen.cxx) - set_source_files_properties(../icons/qrc_oxygen.cxx PROPERTIES GENERATED true) - add_definitions(-DOXYGEN_ICONS_BUILTIN) -endif(OXYGEN_ICONS MATCHES "Builtin") - -# Now it's time to build the modules... - add_subdirectory(common) include_directories(common) if(WANT_CORE OR WANT_MONO) @@ -33,7 +15,18 @@ if(WANT_QTCLIENT OR WANT_MONO) include_directories(qtui) endif(WANT_QTCLIENT OR WANT_MONO) -# ... and finally the executables +# We always add stuff in :/pics +qt4_add_resources(CLIENT_DEPS ../pics/pics.qrc) + +if(QUASSEL_ICONS MATCHES "Builtin") + set(CLIENT_DEPS ${CLIENT_DEPS} ../icons/qrc_hicolor.cxx) + set_source_files_properties(../icons/qrc_hicolor.cxx PROPERTIES GENERATED true) +endif(QUASSEL_ICONS MATCHES "Builtin") + +if(OXYGEN_ICONS MATCHES "Builtin") + set(CLIENT_DEPS ${CLIENT_DEPS} ../icons/qrc_oxygen.cxx) + set_source_files_properties(../icons/qrc_oxygen.cxx PROPERTIES GENERATED true) +endif(OXYGEN_ICONS MATCHES "Builtin") if(WANT_CORE) setup_qt4_variables(NETWORK SCRIPT SQL) diff --git a/src/qtui/qtuiapplication.cpp b/src/qtui/qtuiapplication.cpp index 0049bff2..6ae09c94 100644 --- a/src/qtui/qtuiapplication.cpp +++ b/src/qtui/qtuiapplication.cpp @@ -28,14 +28,6 @@ #include "sessionsettings.h" QtUiApplication::QtUiApplication(int &argc, char **argv) : QApplication(argc, argv), Quassel() { - Q_INIT_RESOURCE(pics); -# ifdef QUASSEL_ICONS_BUILTIN - Q_INIT_RESOURCE(hicolor); -# endif -# ifdef OXYGEN_ICONS_BUILTIN - Q_INIT_RESOURCE(oxygen); -# endif - setRunMode(Quassel::ClientOnly); // put client-only arguments here