diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 05:57:16 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 05:57:16 -0400 |
commit | 5922861e94e44eb311d17b4d0c017036230fd1db (patch) | |
tree | 7cf161277e6dee06347c8d765bed07caf7ea5ba8 /sigtools/PluginTreeModel.cpp | |
parent | 92530cb716baf7d978832f47321eb8f74a79da58 (diff) | |
download | sigen-5922861e94e44eb311d17b4d0c017036230fd1db.tar.gz sigen-5922861e94e44eb311d17b4d0c017036230fd1db.tar.xz sigen-5922861e94e44eb311d17b4d0c017036230fd1db.zip |
Split Model ctor
Diffstat (limited to 'sigtools/PluginTreeModel.cpp')
-rw-r--r-- | sigtools/PluginTreeModel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sigtools/PluginTreeModel.cpp b/sigtools/PluginTreeModel.cpp index 6a291b45..d0529c66 100644 --- a/sigtools/PluginTreeModel.cpp +++ b/sigtools/PluginTreeModel.cpp @@ -35,9 +35,13 @@ using namespace Sigencore::Interfaces; using namespace Sigtools; -PluginTreeModel::PluginTreeModel(const QStringList& types, PluginTree* tree) : +PluginTreeModel::PluginTreeModel(PluginTree* tree) : QAbstractListModel(tree) { +} + +void PluginTreeModel::setTypes(const QStringList& types) +{ foreach (const QString& type, types) { const QStringList names = PluginLoader::availablePlugins(type); |