Commit 971310da authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.plugins: getters should be const

metaInfo() and pluginName are now const.

Change-Id: I41ad0ad11d19268e18e839adcdbd8fb6bfba629d
Reviewed-on: http://codereview.qt.nokia.com/470

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 76448eec
...@@ -44,8 +44,8 @@ class IWidgetPlugin ...@@ -44,8 +44,8 @@ class IWidgetPlugin
public: public:
virtual ~IWidgetPlugin() {} virtual ~IWidgetPlugin() {}
virtual QString metaInfo() = 0; virtual QString metaInfo() const = 0;
virtual QString pluginName() = 0; virtual QString pluginName() const = 0;
}; };
} // namespace QmlDesigner } // namespace QmlDesigner
......
...@@ -41,12 +41,12 @@ ExtrasPlugin::ExtrasPlugin() ...@@ -41,12 +41,12 @@ ExtrasPlugin::ExtrasPlugin()
{ {
} }
QString ExtrasPlugin::pluginName() QString ExtrasPlugin::pluginName() const
{ {
return ("ExtrasPlugin"); return ("ExtrasPlugin");
} }
QString ExtrasPlugin::metaInfo() QString ExtrasPlugin::metaInfo() const
{ {
return QString(":/extrasplugin/extras.metainfo"); return QString(":/extrasplugin/extras.metainfo");
} }
......
...@@ -50,8 +50,8 @@ public: ...@@ -50,8 +50,8 @@ public:
ExtrasPlugin(); ExtrasPlugin();
~ExtrasPlugin() {} ~ExtrasPlugin() {}
QString metaInfo(); QString metaInfo() const;
QString pluginName(); QString pluginName() const;
}; };
......
...@@ -41,12 +41,12 @@ MeegoPlugin::MeegoPlugin() ...@@ -41,12 +41,12 @@ MeegoPlugin::MeegoPlugin()
{ {
} }
QString MeegoPlugin::pluginName() QString MeegoPlugin::pluginName() const
{ {
return ("MeegoPlugin"); return ("MeegoPlugin");
} }
QString MeegoPlugin::metaInfo() QString MeegoPlugin::metaInfo() const
{ {
return QString(":/meegoplugin/meego.metainfo"); return QString(":/meegoplugin/meego.metainfo");
} }
......
...@@ -50,8 +50,8 @@ public: ...@@ -50,8 +50,8 @@ public:
MeegoPlugin(); MeegoPlugin();
~MeegoPlugin() {} ~MeegoPlugin() {}
QString metaInfo(); QString metaInfo() const;
QString pluginName(); QString pluginName() const;
}; };
......
...@@ -46,12 +46,12 @@ QtQuickPlugin::QtQuickPlugin() ...@@ -46,12 +46,12 @@ QtQuickPlugin::QtQuickPlugin()
qmlRegisterType<QDeclarativeScaleGrid>("Qt", 4, 7, "ScaleGrid"); qmlRegisterType<QDeclarativeScaleGrid>("Qt", 4, 7, "ScaleGrid");
} }
QString QtQuickPlugin::pluginName() QString QtQuickPlugin::pluginName() const
{ {
return ("QtQuickPlugin"); return ("QtQuickPlugin");
} }
QString QtQuickPlugin::metaInfo() QString QtQuickPlugin::metaInfo() const
{ {
return QString(":/qtquickplugin/quick.metainfo"); return QString(":/qtquickplugin/quick.metainfo");
} }
......
...@@ -50,8 +50,8 @@ public: ...@@ -50,8 +50,8 @@ public:
QtQuickPlugin(); QtQuickPlugin();
~QtQuickPlugin() {} ~QtQuickPlugin() {}
QString metaInfo(); QString metaInfo() const;
QString pluginName(); QString pluginName() const;
}; };
......
...@@ -41,12 +41,12 @@ SymbianPlugin::SymbianPlugin() ...@@ -41,12 +41,12 @@ SymbianPlugin::SymbianPlugin()
{ {
} }
QString SymbianPlugin::pluginName() QString SymbianPlugin::pluginName() const
{ {
return ("SymbianPlugin"); return ("SymbianPlugin");
} }
QString SymbianPlugin::metaInfo() QString SymbianPlugin::metaInfo() const
{ {
return QString(":/symbianplugin/symbian.metainfo"); return QString(":/symbianplugin/symbian.metainfo");
} }
......
...@@ -50,8 +50,8 @@ public: ...@@ -50,8 +50,8 @@ public:
SymbianPlugin(); SymbianPlugin();
~SymbianPlugin() {} ~SymbianPlugin() {}
QString metaInfo(); QString metaInfo() const;
QString pluginName(); QString pluginName() const;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment