summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-10-13 17:19:45 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-10-13 17:19:45 +0000
commit7470797b3757e851fe88d713aaa832d18be17c7a (patch)
tree82759788c0d96c8ba956aae99feb3328fb4e63db /rbutil/rbutilqt/main.cpp
parent5aa0665b5b5522f7867e0ba26ab14e30712f9829 (diff)
downloadrockbox-7470797b3757e851fe88d713aaa832d18be17c7a.tar.gz
rockbox-7470797b3757e851fe88d713aaa832d18be17c7a.tar.bz2
rockbox-7470797b3757e851fe88d713aaa832d18be17c7a.zip
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
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 124d103885..0b720d60f6 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -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.