Changed: #1193 Code cleanup.

This commit is contained in:
dnk-88 2011-01-15 15:09:13 +02:00
parent e67a0c5e87
commit f95b9cbbf6
6 changed files with 22 additions and 9 deletions

View file

@ -91,6 +91,11 @@ QString MyPlugin::description() const
return "Example ovqt plugin.";
}
QList<QString> MyPlugin::dependencies() const
{
return QList<QString>();
}
QObject* MyPlugin::objectByName(const QString &name) const
{
Q_FOREACH (QObject *qobj, _plugMan->allObjects())

View file

@ -35,6 +35,7 @@ public:
QString version() const;
QString vendor() const;
QString description() const;
QList<QString> dependencies() const;
QObject *objectByName(const QString &name) const;
ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const;

View file

@ -112,6 +112,11 @@ QString CLogPlugin::description() const
return "DockWidget to display all log messages from NeL.";
}
QList<QString> CLogPlugin::dependencies() const
{
return QList<QString>();
}
QObject* CLogPlugin::objectByName(const QString &name) const
{
Q_FOREACH (QObject *qobj, _plugMan->allObjects())

View file

@ -65,6 +65,7 @@ namespace Plugin
QString version() const;
QString vendor() const;
QString description() const;
QList<QString> dependencies() const;
QObject *objectByName(const QString &name) const;
ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const;

View file

@ -51,6 +51,7 @@ namespace Plugin
QString vendor() const;
QString description() const;
QList<QString> dependencies() const;
QObject *objectByName(const QString &name) const;
ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const;