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
public:
virtual ~IWidgetPlugin() {}
virtual QString metaInfo() = 0;
virtual QString pluginName() = 0;
virtual QString metaInfo() const = 0;
virtual QString pluginName() const = 0;
};
} // namespace QmlDesigner
......
......@@ -41,12 +41,12 @@ ExtrasPlugin::ExtrasPlugin()
{
}
QString ExtrasPlugin::pluginName()
QString ExtrasPlugin::pluginName() const
{
return ("ExtrasPlugin");
}
QString ExtrasPlugin::metaInfo()
QString ExtrasPlugin::metaInfo() const
{
return QString(":/extrasplugin/extras.metainfo");
}
......
......@@ -50,8 +50,8 @@ public:
ExtrasPlugin();
~ExtrasPlugin() {}
QString metaInfo();
QString pluginName();
QString metaInfo() const;
QString pluginName() const;
};
......
......@@ -41,12 +41,12 @@ MeegoPlugin::MeegoPlugin()
{
}
QString MeegoPlugin::pluginName()
QString MeegoPlugin::pluginName() const
{
return ("MeegoPlugin");
}
QString MeegoPlugin::metaInfo()
QString MeegoPlugin::metaInfo() const
{
return QString(":/meegoplugin/meego.metainfo");
}
......
......@@ -50,8 +50,8 @@ public:
MeegoPlugin();
~MeegoPlugin() {}
QString metaInfo();
QString pluginName();
QString metaInfo() const;
QString pluginName() const;
};
......
......@@ -46,12 +46,12 @@ QtQuickPlugin::QtQuickPlugin()
qmlRegisterType<QDeclarativeScaleGrid>("Qt", 4, 7, "ScaleGrid");
}
QString QtQuickPlugin::pluginName()
QString QtQuickPlugin::pluginName() const
{
return ("QtQuickPlugin");
}
QString QtQuickPlugin::metaInfo()
QString QtQuickPlugin::metaInfo() const
{
return QString(":/qtquickplugin/quick.metainfo");
}
......
......@@ -50,8 +50,8 @@ public:
QtQuickPlugin();
~QtQuickPlugin() {}
QString metaInfo();
QString pluginName();
QString metaInfo() const;
QString pluginName() const;
};
......
......@@ -41,12 +41,12 @@ SymbianPlugin::SymbianPlugin()
{
}
QString SymbianPlugin::pluginName()
QString SymbianPlugin::pluginName() const
{
return ("SymbianPlugin");
}
QString SymbianPlugin::metaInfo()
QString SymbianPlugin::metaInfo() const
{
return QString(":/symbianplugin/symbian.metainfo");
}
......
......@@ -50,8 +50,8 @@ public:
SymbianPlugin();
~SymbianPlugin() {}
QString metaInfo();
QString pluginName();
QString metaInfo() const;
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