on xenial help sign in
Fix class name and some compile warnings
commitd08666f8cffe20611383d3170bec07345850c126 authorMichael Terry <michael.terry@canonical.com> dateFri 2 Aug 2013, 16:03 (13 years ago) parent61990fe
3 files changed+4−4
plugins/AccountsService/plugin.cpp+1−1 plugins/AccountsService/plugin.h+1−1 tests/mocks/AccountsService/AccountsService.cpp+2−2
plugins/AccountsService/plugin.cpp+1−1
@@ -29,7 +29,7 @@ static QObject *service_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
2929 return new AccountsService();
3030}
3131
32−void LightDMPlugin::registerTypes(const char *uri)
32+void AccountsServicePlugin::registerTypes(const char *uri)
3333{
3434 Q_ASSERT(uri == QLatin1String("AccountsService"));
3535 qmlRegisterSingletonType<AccountsService>(uri, 0, 1, "AccountsService", service_provider);
plugins/AccountsService/plugin.h+1−1
@@ -23,7 +23,7 @@
2323#include <QtQml/QQmlEngine>
2424#include <QtQml/QQmlExtensionPlugin>
2525
26−class LightDMPlugin : public QQmlExtensionPlugin
26+class AccountsServicePlugin : public QQmlExtensionPlugin
2727{
2828 Q_OBJECT
2929 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
tests/mocks/AccountsService/AccountsService.cpp+2−2
@@ -23,11 +23,11 @@ AccountsService::AccountsService(QObject* parent)
2323{
2424}
2525
26−QVariant AccountsService::getUserProperty(const QString &user, const QString &property)
26+QVariant AccountsService::getUserProperty(const QString &, const QString &)
2727{
2828 return QVariant(false);
2929}
3030
31−void AccountsService::setUserProperty(const QString &user, const QString &property, const QVariant &value)
31+void AccountsService::setUserProperty(const QString &, const QString &, const QVariant &)
3232{
3333}