diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-01 12:21:49 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-01 12:21:49 +0000 |
| commit | 5c707aac4f1c5246443fee32f5629881ecc134c5 (patch) | |
| tree | 325526cf796f0cdacbba9b713678855578b6804c /src/ui/pluginitem.cpp | |
| parent | dbe1c2bb4eda63205b744411ddcaf12d5d6436fb (diff) | |
| download | qmmp-5c707aac4f1c5246443fee32f5629881ecc134c5.tar.gz qmmp-5c707aac4f1c5246443fee32f5629881ecc134c5.tar.bz2 qmmp-5c707aac4f1c5246443fee32f5629881ecc134c5.zip | |
added transport settings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1534 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/pluginitem.cpp')
| -rw-r--r-- | src/ui/pluginitem.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ui/pluginitem.cpp b/src/ui/pluginitem.cpp index bddcf1892..0f0fa1f58 100644 --- a/src/ui/pluginitem.cpp +++ b/src/ui/pluginitem.cpp @@ -36,6 +36,16 @@ #include "pluginitem.h" + +PluginItem::PluginItem(QTreeWidgetItem *parent, InputSourceFactory *factory, const QString &path) + : QTreeWidgetItem(parent, QStringList() << factory->properties().name << path.section('/',-1), TRANSPORT) +{ + m_has_about = factory->properties().hasAbout; + m_has_config = factory->properties().hasSettings; + m_factory = factory; +} + + PluginItem::PluginItem(QTreeWidgetItem *parent, DecoderFactory *factory, const QString &path) : QTreeWidgetItem(parent, QStringList() << factory->properties().name << path.section('/',-1), DECODER) { @@ -100,7 +110,7 @@ void PluginItem::showAbout(QWidget *parent) switch(type()) { case PluginItem::TRANSPORT: - //dynamic_cast<InputSourceFactory *>(m_factory) + static_cast<InputSourceFactory *>(m_factory)->showAbout(parent); break; case PluginItem::DECODER: static_cast<DecoderFactory *>(m_factory)->showAbout(parent); @@ -128,7 +138,7 @@ void PluginItem::showSettings(QWidget *parent) switch(type()) { case PluginItem::TRANSPORT: - //dynamic_cast<InputSourceFactory *>(m_factory) + static_cast<InputSourceFactory *>(m_factory)->showSettings(parent); break; case PluginItem::DECODER: static_cast<DecoderFactory *>(m_factory)->showSettings (parent); |
