Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-qt/qtmain.cpp
Context not available. | |||||
32 | Q_IMPORT_PLUGIN(qsvg) | 32 | Q_IMPORT_PLUGIN(qsvg) | ||
---|---|---|---|---|---|
33 | #endif | 33 | #endif | ||
34 | 34 | | |||
35 | #ifdef Q_OS_MACX | 35 | #ifdef Q_OS_OSX | ||
36 | //for getting app bundle path | 36 | //for getting app bundle path | ||
37 | #include <ApplicationServices/ApplicationServices.h> | 37 | #include <ApplicationServices/ApplicationServices.h> | ||
38 | #endif | 38 | #endif | ||
Context not available. | |||||
61 | QApplication::addLibraryPath( QApplication::applicationDirPath() | 61 | QApplication::addLibraryPath( QApplication::applicationDirPath() | ||
62 | + QDir::separator() + "plugins" ); | 62 | + QDir::separator() + "plugins" ); | ||
63 | #endif | 63 | #endif | ||
64 | #ifdef Q_OS_MACX | 64 | #ifdef Q_OS_OSX | ||
65 | QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus); | 65 | QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus); | ||
66 | qDebug("Adding qt image plugins to plugin search path..."); | 66 | qDebug("Adding qt image plugins to plugin search path..."); | ||
67 | CFURLRef myBundleRef = CFBundleCopyBundleURL(CFBundleGetMainBundle()); | 67 | CFURLRef myBundleRef = CFBundleCopyBundleURL(CFBundleGetMainBundle()); | ||
Context not available. | |||||
76 | // lets try to set the qt plugin search path... | 76 | // lets try to set the qt plugin search path... | ||
77 | if (myPath.contains(".app")) | 77 | if (myPath.contains(".app")) | ||
78 | { | 78 | { | ||
79 | myPath += "/Contents/plugins"; | 79 | myPath += "/Contents/Resources/plugins"; | ||
80 | QApplication::addLibraryPath( myPath ); | 80 | QApplication::addLibraryPath( myPath ); | ||
81 | qDebug( "Added %s to plugin search path", qPrintable( myPath ) ); | 81 | qDebug( "Added %s to plugin search path", qPrintable( myPath ) ); | ||
82 | } | 82 | } | ||
Context not available. |