diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 05:57:34 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 05:57:34 -0400 |
commit | 649b1299e75633ca4d70424181ebd39b08967fb8 (patch) | |
tree | 790ac1fae708b38356e6e8aea32d770b9b347eaa /sigtools | |
parent | 5922861e94e44eb311d17b4d0c017036230fd1db (diff) | |
download | sigen-649b1299e75633ca4d70424181ebd39b08967fb8.tar.gz sigen-649b1299e75633ca4d70424181ebd39b08967fb8.tar.xz sigen-649b1299e75633ca4d70424181ebd39b08967fb8.zip |
Get the type and name from the model
Diffstat (limited to 'sigtools')
-rw-r--r-- | sigtools/PluginTree.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sigtools/PluginTree.cpp b/sigtools/PluginTree.cpp index ecdb788c..9dbc4376 100644 --- a/sigtools/PluginTree.cpp +++ b/sigtools/PluginTree.cpp @@ -48,10 +48,12 @@ PluginTree::PluginTree(const QStringList& types, QWidget* parent) : QString PluginTree::currentType() const { + return static_cast<PluginTreeModel::ClassData*>(d->m_view->currentIndex().internalPointer())->m_type; } QString PluginTree::currentName() const { + return static_cast<PluginTreeModel::ClassData*>(d->m_view->currentIndex().internalPointer())->m_name; } PluginTree::Private::Private(const QStringList& types, PluginTree* tree) : |