on xenial help sign in
fix issues from review
7d865e0Michael Zanetti
plugins/Unity/Launcher/gsettings.cpp+2−2
@@ -25,7 +25,7 @@ GSettings::GSettings(QObject *parent):
25 QObject(parent)
25 QObject(parent)
26{
26{
27 m_gSettings = new QGSettings("com.canonical.Unity.Launcher", "/com/canonical/unity/launcher/", this);
27 m_gSettings = new QGSettings("com.canonical.Unity.Launcher", "/com/canonical/unity/launcher/", this);
28− connect(m_gSettings, &QGSettings::changed, this, &GSettings::settingsChanged);
28+ connect(m_gSettings, &QGSettings::changed, this, &GSettings::onSettingsChanged);
29}
29}
30
30
31QStringList GSettings::storedApplications() const
31QStringList GSettings::storedApplications() const
@@ -62,7 +62,7 @@ void GSettings::setStoredApplications(const QStringList &storedApplications)
62 m_gSettings->set("items", gSettingsList);
62 m_gSettings->set("items", gSettingsList);
63}
63}
64
64
65−void GSettings::settingsChanged(const QString &key)
65+void GSettings::onSettingsChanged(const QString &key)
66{
66{
67 if (key == "items") {
67 if (key == "items") {
68 Q_EMIT changed();
68 Q_EMIT changed();
plugins/Unity/Launcher/gsettings.h+1−1
@@ -37,7 +37,7 @@ Q_SIGNALS:
37 void changed();
37 void changed();
38
38
39private Q_SLOTS:
39private Q_SLOTS:
40− void settingsChanged(const QString &key);
40+ void onSettingsChanged(const QString &key);
41
41
42private:
42private:
43 QGSettings *m_gSettings;
43 QGSettings *m_gSettings;
plugins/Unity/Launcher/launchermodel.cpp+1−1
@@ -1,5 +1,5 @@
1/*
1/*
2− * Copyright 2013 Canonical Ltd.
2+ * Copyright 2013-2014 Canonical Ltd.
3 *
3 *
4 * This program is free software; you can redistribute it and/or modify
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
5 * it under the terms of the GNU Lesser General Public License as published by
plugins/Unity/Launcher/launchermodel.h+1−1
@@ -1,5 +1,5 @@
1/*
1/*
2− * Copyright 2013 Canonical Ltd.
2+ * Copyright 2013-2014 Canonical Ltd.
3 *
3 *
4 * This program is free software; you can redistribute it and/or modify
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
5 * it under the terms of the GNU Lesser General Public License as published by