Corrected bug in the display of plugins info

This commit is contained in:
Paolo Cignoni cignoni 2008-02-06 09:56:37 +00:00
parent b9e35f4073
commit 0fa31e0750
3 changed files with 13 additions and 2 deletions

View File

@ -24,6 +24,9 @@
History
$Log$
Revision 1.89 2008/02/06 09:56:37 cignoni
Corrected bug in the display of plugins info
Revision 1.88 2008/01/06 20:44:19 cignoni
added correct paths for QT dynlib loading
@ -585,7 +588,7 @@ void MainWindow::createMenus()
void MainWindow::loadPlugins()
{
QDir pluginsDir(getPluginDirPath());
pluginsDir=QDir(getPluginDirPath());
// without adding the correct library path in the mac the loading of jpg (done via qt plugins) fails
qApp->addLibraryPath(getPluginDirPath());
qApp->addLibraryPath(getBaseDirPath());

View File

@ -24,6 +24,9 @@
History
$Log$
Revision 1.149 2008/02/06 09:56:37 cignoni
Corrected bug in the display of plugins info
Revision 1.148 2008/02/04 09:34:02 cignoni
better managment of state changes when layer switching and adding files to the current layer set
@ -991,7 +994,8 @@ void MainWindow::about()
void MainWindow::aboutPlugins()
{
PluginDialog dialog(pluginsDir.path(), pluginFileNames, this);
qDebug( "aboutPlugins(): Current Plugins Dir: %s ",qPrintable(pluginsDir.absolutePath()));
PluginDialog dialog(pluginsDir.absolutePath(), pluginFileNames, this);
dialog.exec();
}

View File

@ -23,6 +23,9 @@
/****************************************************************************
History
$Log$
Revision 1.16 2008/02/06 09:56:37 cignoni
Corrected bug in the display of plugins info
Revision 1.15 2007/12/12 15:33:00 cignoni
Use info() instead of name() for a better description
@ -211,6 +214,7 @@ void PluginDialog::displayInfo(QTreeWidgetItem* item,int ncolumn)
else parent=item->text(0);
QString fileName=pathDirectory+"/"+parent;
QPluginLoader loader(fileName);
qDebug(qPrintable("Trying to load the plugin "+fileName));
QObject *plugin = loader.instance();
if (plugin) {
MeshIOInterface *iMeshIO = qobject_cast<MeshIOInterface *>(plugin);