summaryrefslogtreecommitdiffstats
path: root/sigtools/PluginTypeModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigtools/PluginTypeModel.cpp')
-rw-r--r--sigtools/PluginTypeModel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sigtools/PluginTypeModel.cpp b/sigtools/PluginTypeModel.cpp
index 102cdcbc..7e8a4c40 100644
--- a/sigtools/PluginTypeModel.cpp
+++ b/sigtools/PluginTypeModel.cpp
@@ -41,7 +41,7 @@ PluginTypeModel::PluginTypeModel(const QString& type, RootPluginModel* parent) :
int PluginTypeModel::rowCount() const
{
- return m_services.size();
+ return m_plugins.size();
}
Qt::ItemFlags PluginTypeModel::flags() const
@@ -51,19 +51,19 @@ Qt::ItemFlags PluginTypeModel::flags() const
BaseModel* PluginTypeModel::childItem(const int row)
{
- if ((0 <= row) && (row < m_services.size()))
- return m_services[row];
+ if ((0 <= row) && (row < m_plugins.size()))
+ return m_plugins[row];
return NULL;
}
void PluginTypeModel::addPlugin(KService::Ptr service)
{
- m_services.append(new PluginModel(service, this));
+ m_plugins.append(new PluginModel(service, this));
}
int PluginTypeModel::findChild(BaseModel* model) const
{
- return m_services.indexOf(qobject_cast<PluginModel*>(model));
+ return m_plugins.indexOf(qobject_cast<PluginModel*>(model));
}
void PluginTypeModel::redraw(const int width) const