summaryrefslogtreecommitdiffstats
path: root/sigtools
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-25 14:42:54 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-25 14:42:54 -0400
commitf06df6ecd2bf5b9f1a5dd9ead0d881596aa63ed5 (patch)
treeeffd8c33540ae07d621f7e8766bc9a9111f38f44 /sigtools
parent4efeacd1d03bd495f7855ecf5f4f516a6799fe6d (diff)
downloadsigen-f06df6ecd2bf5b9f1a5dd9ead0d881596aa63ed5.tar.gz
sigen-f06df6ecd2bf5b9f1a5dd9ead0d881596aa63ed5.tar.xz
sigen-f06df6ecd2bf5b9f1a5dd9ead0d881596aa63ed5.zip
Rename member of PluginTypeModel
Diffstat (limited to 'sigtools')
-rw-r--r--sigtools/PluginTypeModel.cpp10
-rw-r--r--sigtools/PluginTypeModel.h2
2 files changed, 6 insertions, 6 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
diff --git a/sigtools/PluginTypeModel.h b/sigtools/PluginTypeModel.h
index a79c7815..9caff55a 100644
--- a/sigtools/PluginTypeModel.h
+++ b/sigtools/PluginTypeModel.h
@@ -49,7 +49,7 @@ class SIGTOOLS_NO_EXPORT PluginTypeModel : public BaseModel
void redraw(const int width) const;
const QString m_type;
- QList<PluginModel*> m_services;
+ QList<PluginModel*> m_plugins;
};
}