From ef5a523a8dfb679c99ff203362386c5b513293df Mon Sep 17 00:00:00 2001 From: Tobias Rundstrom Date: Sat, 4 Mar 2006 13:42:23 -0300 Subject: [PATCH] Maybe people stop whining now. --- MainWindow.cpp | 5 +++++ promoe.pro | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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