[Kst] branches/work/kst/portto4/kst/src/libkst
Peter Kümmel
syntheticpp at yahoo.com
Sun Nov 15 13:14:31 CET 2009
SVN commit 1049542 by kuemmel:
remove noise when loading plugin on windows
add log on success
M +6 -1 datasource.cpp
--- branches/work/kst/portto4/kst/src/libkst/datasource.cpp #1049541:1049542
@@ -141,14 +141,19 @@
foreach (QString pluginPath, pluginPaths) {
QDir d(pluginPath);
foreach (QString fileName, d.entryList(QDir::Files)) {
+#ifdef Q_OS_WIN
+ if (!fileName.endsWith(".dll"))
+ continue;
+#endif
QPluginLoader loader(d.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
if (plugin) {
if (DataSourcePluginInterface *ds = dynamic_cast<DataSourcePluginInterface*>(plugin)) {
tmpList.append(ds);
+ Debug::self()->log(QString("Plugin loaded: %1").arg(fileName));
}
} else {
- Debug::self()->log(QString("instance failed for %1 (%2)").arg(fileName).arg(loader.errorString()));
+ Debug::self()->log(QString("instance failed for %1 (%2)").arg(fileName).arg(loader.errorString()));
}
}
}
More information about the Kst
mailing list