contentstorage/caclient/src/caqtsfhandlerloader.cpp
changeset 98 d2f833ab7940
parent 96 5d243a69bdda
child 107 b34d53f6acdf
equal deleted inserted replaced
97:1e962b12a8db 98:d2f833ab7940
    55 void CaQtSfHandlerLoader::registerPlugins() const
    55 void CaQtSfHandlerLoader::registerPlugins() const
    56 {
    56 {
    57     const QString pluginPath("hsresources/plugins/commandhandler");
    57     const QString pluginPath("hsresources/plugins/commandhandler");
    58     const QFileInfoList drives = QDir::drives();
    58     const QFileInfoList drives = QDir::drives();
    59     
    59     
    60     foreach(QFileInfo drive, drives) {
    60     foreach (QFileInfo drive, drives) {
    61         const QString driveLetter = drive.absolutePath();
    61         const QString driveLetter = drive.absolutePath();
    62         const QString pluginAbsolutePath = driveLetter + pluginPath;
    62         const QString pluginAbsolutePath = driveLetter + pluginPath;
    63         const QDir pluginDir(pluginAbsolutePath);
    63         const QDir pluginDir(pluginAbsolutePath);
    64         if(QDir(pluginDir).exists()) {
    64         if (QDir(pluginDir).exists()) {
    65             const QFileInfoList fileInfos = 
    65             const QFileInfoList fileInfos = 
    66                 pluginDir.entryInfoList(QStringList("*.xml"));
    66                 pluginDir.entryInfoList(QStringList("*.xml"));
    67             
    67             
    68             QApplication::addLibraryPath(pluginAbsolutePath);
    68             QApplication::addLibraryPath(pluginAbsolutePath);
    69             
    69