Needed to update the greeter-related plugin to reflect the tweak to LauncherModel::alert()
commitb3b0c24bce2827f81ba96f4533053f236192f88c
authorMirco Müller <mirco.mueller@ubuntu.com>
dateThu 18 Jun 2015, 19:17 (11 years ago)
parentc292f4b
plugins/Greeter/Unity/Launcher/launchermodelas.cpp+7
@@ -72,6 +72,13 @@ QVariant LauncherModel::data(const QModelIndex &index, int role) const
7272 return QVariant();
7373}
7474
75+void LauncherModel::alert(const QString &appId, bool alerting)
76+{
77+ Q_UNUSED(appId)
78+ Q_UNUSED(alerting)
79+ qWarning() << "This is a read only implementation. Cannot set alert-state of items.";
80+}
81+
7582unity::shell::launcher::LauncherItemInterface *LauncherModel::get(int index) const
7683{
7784 if (index < 0 || index >= m_list.count()) {
plugins/Greeter/Unity/Launcher/launchermodelas.h+1
@@ -41,6 +41,7 @@ public:
4141
4242 QVariant data(const QModelIndex &index, int role) const override;
4343
44+ Q_INVOKABLE void alert(const QString &appId, bool alerting) override;
4445 Q_INVOKABLE unity::shell::launcher::LauncherItemInterface* get(int index) const override;
4546 Q_INVOKABLE void move(int oldIndex, int newIndex) override;
4647 Q_INVOKABLE void pin(const QString &appId, int index = -1) override;
plugins/Unity/Launcher/launchermodel.h+1−1
@@ -45,7 +45,7 @@ public:
4545
4646 QVariant data(const QModelIndex &index, int role) const override;
4747
48− Q_INVOKABLE void alert(const QString &appId, bool alerting);
48+ Q_INVOKABLE void alert(const QString &appId, bool alerting) override;
4949 Q_INVOKABLE unity::shell::launcher::LauncherItemInterface* get(int index) const override;
5050 Q_INVOKABLE void move(int oldIndex, int newIndex) override;
5151 Q_INVOKABLE void pin(const QString &appId, int index = -1) override;
tests/mocks/Unity/Launcher/MockLauncherModel.h+1−1
@@ -38,7 +38,7 @@ public:
3838
3939 QVariant data(const QModelIndex& index, int role) const override;
4040
41− Q_INVOKABLE void alert(const QString &appId, bool alerting);
41+ Q_INVOKABLE void alert(const QString &appId, bool alerting) override;
4242 Q_INVOKABLE unity::shell::launcher::LauncherItemInterface *get(int index) const override;
4343 Q_INVOKABLE void move(int oldIndex, int newIndex) override;
4444 Q_INVOKABLE void pin(const QString &appId, int index = -1) override;