equal
deleted
inserted
replaced
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 |