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_MACOS | ||
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. | |||||
107 | QApplication::addLibraryPath( QApplication::applicationDirPath() | 107 | QApplication::addLibraryPath( QApplication::applicationDirPath() | ||
108 | + QDir::separator() + QLatin1String("plugins")); | 108 | + QDir::separator() + QLatin1String("plugins")); | ||
109 | #endif | 109 | #endif | ||
110 | #ifdef Q_OS_MACX | 110 | #ifdef Q_OS_MACOS | ||
111 | QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus); | 111 | QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus); | ||
112 | qDebug("Adding qt image plugins to plugin search path..."); | 112 | qDebug("Adding qt image plugins to plugin search path..."); | ||
113 | CFURLRef myBundleRef = CFBundleCopyBundleURL(CFBundleGetMainBundle()); | 113 | CFURLRef myBundleRef = CFBundleCopyBundleURL(CFBundleGetMainBundle()); | ||
Context not available. | |||||
122 | // lets try to set the qt plugin search path... | 122 | // lets try to set the qt plugin search path... | ||
123 | if (myPath.contains(".app")) | 123 | if (myPath.contains(".app")) | ||
124 | { | 124 | { | ||
125 | myPath += QLatin1String("/Contents/plugins"); | 125 | myPath += QLatin1String("/Contents/Resources/plugins"); | ||
126 | QApplication::addLibraryPath( myPath ); | 126 | QApplication::addLibraryPath( myPath ); | ||
127 | qDebug( "Added %s to plugin search path", qPrintable( myPath ) ); | 127 | qDebug( "Added %s to plugin search path", qPrintable( myPath ) ); | ||
128 | } | 128 | } | ||
Context not available. |