src/hbutils/document/hbdocumentloader_p.cpp
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 5 627c4a0fd0e7
--- a/src/hbutils/document/hbdocumentloader_p.cpp	Mon May 03 12:48:33 2010 +0300
+++ b/src/hbutils/document/hbdocumentloader_p.cpp	Fri May 14 16:09:54 2010 +0300
@@ -281,14 +281,14 @@
 
 QString HbDocumentLoaderPluginManager::pluginFileNameFilter() const
 {
-#if defined(Q_OS_LINUX)
-    return QString("*.so");
-#elif defined(Q_OS_MAC)
+#if defined(Q_OS_MAC)
     return QString("*.dylib");
 #elif defined(Q_OS_WIN32)
     return QString("*plugin.dll");
+#elif defined(Q_OS_SYMBIAN)
+    return QString("*.qtplugin");
 #else
-    return QString("*.qtplugin");
+    return QString("*.so");
 #endif
 }
 
@@ -337,7 +337,7 @@
     foreach( QPluginLoader *loader, mPlugins ) {
         const QFileInfo fileInfo( loader->fileName() );
         QString compareName;
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
         compareName.append( "lib" );
 #endif
         compareName.append( plugin );
@@ -349,7 +349,7 @@
     // not found -> try to find it.
     const QStringList pathList = pluginPathList();
     QString fileNameFilter;
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
     fileNameFilter.append( "lib" );
 #endif
     fileNameFilter.append( plugin );