diff --git a/MainWindow.cpp b/MainWindow.cpp index 98df13d..b4a1dcc 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -102,7 +102,12 @@ main (int argc, char **argv) QApplication app(argc, argv); QSettings settings ("XMMS2", "Promoe"); +#ifdef Q_OS_MACX + /** This is soooo wrong, there must exsist a flag for + * static plugins + */ Q_IMPORT_PLUGIN(QJpegPlugin); +#endif MainWindow *mw = new MainWindow (NULL); diff --git a/promoe.pro b/promoe.pro index 4364db1..7b7b4d3 100644 --- a/promoe.pro +++ b/promoe.pro @@ -49,7 +49,7 @@ RESOURCES = promoe.qrc macx:RC_FILE = promoe.icns QT += network -QTPLUGIN += qjpeg +macx:QTPLUGIN += qjpeg QMAKE_LFLAGS += -L$$[QT_INSTALL_PLUGINS]/imageformats CONFIG += link_pkgconfig