equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the Qt Mobility Components. |
7 ** This file is part of the Qt Mobility Components. |
8 ** |
8 ** |
61 { |
61 { |
62 if (QFile::exists(libNameOrPath)) |
62 if (QFile::exists(libNameOrPath)) |
63 return libNameOrPath; |
63 return libNameOrPath; |
64 |
64 |
65 // try to find plug-in via QLibrary |
65 // try to find plug-in via QLibrary |
66 const QStringList paths = QCoreApplication::libraryPaths(); |
66 QStringList paths = QCoreApplication::libraryPaths(); |
|
67 #ifdef QTM_PLUGIN_PATH |
|
68 paths << QLatin1String(QTM_PLUGIN_PATH)+QLatin1String("/serviceframework"); |
|
69 #endif |
67 for (int i=0; i<paths.count(); i++) { |
70 for (int i=0; i<paths.count(); i++) { |
68 QString libPath = QDir::toNativeSeparators(paths[i]) + QDir::separator() + libNameOrPath; |
71 QString libPath = QDir::toNativeSeparators(paths[i]) + QDir::separator() + libNameOrPath; |
69 |
72 |
70 #ifdef Q_OS_SYMBIAN |
73 #ifdef Q_OS_SYMBIAN |
71 QFileInfo fi(libPath); |
74 QFileInfo fi(libPath); |