Set current directory to application bundle on startup.
Set the current directory to application bundle on startup. This allows Qt examples etc. that load resources from the deployment path to work correctly without modification. Change-Id: I5846de135c39d2158ee6c1ae21493739c3532239 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
cada1fb4ef
commit
27e0ddcd29
@ -49,6 +49,7 @@
|
||||
#include "qiostheme.h"
|
||||
|
||||
#include <QtPlatformSupport/private/qcoretextfontdatabase_p.h>
|
||||
#include <QDir>
|
||||
|
||||
#include <QtDebug>
|
||||
|
||||
@ -71,6 +72,9 @@ QIOSIntegration::QIOSIntegration()
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
// Set current directory to app bundle folder
|
||||
QDir::setCurrent(QString::fromUtf8([[[NSBundle mainBundle] bundlePath] UTF8String]));
|
||||
|
||||
screenAdded(m_screen);
|
||||
|
||||
m_touchDevice = new QTouchDevice;
|
||||
|
Loading…
x
Reference in New Issue
Block a user