qtmobility/src/sensors/qsensorpluginloader.cpp
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 8 71781823f776
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
    37 **
    37 **
    38 ** $QT_END_LICENSE$
    38 ** $QT_END_LICENSE$
    39 **
    39 **
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 
    41 
       
    42 #include <src/global/qbuildcfg.h>
    42 #include "qsensorpluginloader_p.h"
    43 #include "qsensorpluginloader_p.h"
    43 #include <QtCore/qcoreapplication.h>
    44 #include <QtCore/qcoreapplication.h>
    44 #include <QtCore/qdir.h>
    45 #include <QtCore/qdir.h>
    45 #include <QtCore/qdebug.h>
    46 #include <QtCore/qdebug.h>
    46 
    47 
    68 {
    69 {
    69     if (!m_plugins.isEmpty())
    70     if (!m_plugins.isEmpty())
    70         return;
    71         return;
    71 
    72 
    72     QStringList     paths = QCoreApplication::libraryPaths();
    73     QStringList     paths = QCoreApplication::libraryPaths();
       
    74     QString val = QLatin1String(qt_mobility_configure_prefix_path_str);
       
    75     if(val.length() > 0){
       
    76         val += QLatin1String("/plugins");
       
    77         paths << val;
       
    78     }
    73 
    79 
    74     Q_FOREACH (QString const &path, paths) {
    80     Q_FOREACH (QString const &path, paths) {
    75         QString pluginPathName(path + m_location);
    81         QString pluginPathName(path + m_location);
    76         QDir pluginDir(pluginPathName);
    82         QDir pluginDir(pluginPathName);
    77 
    83