Mercurial > hg > svgui
diff widgets/PluginParameterDialog.cpp @ 441:f8fcfbe13c8f
* Avoid waiting on uninstalled transforms mutex in TransformFactory::
getTransformInstallStatus -- we can return TransformUnknown
* Don't follow link in SelectableLabel when clicking to select it
* Restore lost version number in plugin param dialog
author | Chris Cannam |
---|---|
date | Tue, 28 Oct 2008 18:06:06 +0000 |
parents | 08d6bc698d16 |
children | c803eb18ebba |
line wrap: on
line diff
--- a/widgets/PluginParameterDialog.cpp Tue Oct 28 12:39:53 2008 +0000 +++ b/widgets/PluginParameterDialog.cpp Tue Oct 28 18:06:06 2008 +0000 @@ -79,8 +79,8 @@ QLabel *makerLabel = new QLabel(plugin->getMaker().c_str()); makerLabel->setWordWrap(true); - QLabel *versionLabel = new QLabel(QString("%1") - .arg(plugin->getPluginVersion())); + int version = plugin->getPluginVersion(); + QLabel *versionLabel = new QLabel(QString("%1").arg(version)); versionLabel->setWordWrap(true); QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); @@ -121,16 +121,12 @@ row++; } - Vamp::Plugin *fePlugin = dynamic_cast<Vamp::Plugin *>(m_plugin); - - if (fePlugin) { + if (version >= 0) { label = new QLabel(tr("Version:")); label->setAlignment(Qt::AlignTop | Qt::AlignLeft); subgrid->addWidget(label, row, 0); subgrid->addWidget(versionLabel, row, 1); row++; - } else { - std::cerr << "PluginParameterDialog: Note: not a feature extraction plugin (type is " << typeid(*m_plugin).name() << ")" << std::endl; } // label = new QLabel(tr("Type:"));