rbutil: include the qt accessible plugin into the mac bundle. (Enables screenreader support on macs)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18800 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2008-10-13 17:19:45 +00:00
parent 5aa0665b5b
commit 7470797b37
2 changed files with 18 additions and 2 deletions

View file

@ -28,7 +28,12 @@ Q_IMPORT_PLUGIN(qtaccessiblewidgets)
int main( int argc, char ** argv ) {
QApplication app( argc, argv );
#if defined(Q_OS_MAC)
QDir dir(QApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QApplication::addLibraryPath(dir.absolutePath());
#endif
QString absolutePath = QCoreApplication::instance()->applicationDirPath();
// portable installation:
// check for a configuration file in the program folder.