on xenial help sign in
cleanup
a2669ebMichael Zanetti
plugins/Unity/Launcher/launchermodel.cpp−1
@@ -490,7 +490,6 @@ void LauncherModel::refresh()
490
490
491void LauncherModel::alert(const QString &appId)
491void LauncherModel::alert(const QString &appId)
492{
492{
493− qDebug() << "alerting for appId" << appId;
494 int idx = findApplication(appId);
493 int idx = findApplication(appId);
495 if (idx >= 0) {
494 if (idx >= 0) {
496 LauncherItem *item = m_list.at(idx);
495 LauncherItem *item = m_list.at(idx);
qml/Launcher/LauncherPanel.qml−10
@@ -244,15 +244,6 @@ Rectangle {
244 maxAngle: 55
244 maxAngle: 55
245 property bool dragging: false
245 property bool dragging: false
246
246
247− Timer {
248− interval: 1000
249− running: index == 2
250− repeat: true
251− onTriggered: {
252− print("is alerting", model.alerting)
253− }
254− }
255−
256 SequentialAnimation {
247 SequentialAnimation {
257 id: peekingAnimation
248 id: peekingAnimation
258
249
@@ -284,7 +275,6 @@ Rectangle {
284 }
275 }
285
276
286 onAlertingChanged: {
277 onAlertingChanged: {
287− print("panel alerting changed", alerting)
288 if(alerting) {
278 if(alerting) {
289 if (!dragging && (launcherListView.peekingIndex === -1 || launcher.visibleWidth > 0)) {
279 if (!dragging && (launcherListView.peekingIndex === -1 || launcher.visibleWidth > 0)) {
290 launcherListView.moveToIndex(index)
280 launcherListView.moveToIndex(index)
tests/mocks/Unity/Launcher/MockLauncherItem.cpp−2
@@ -21,7 +21,6 @@
21#include "MockQuickListModel.h"
21#include "MockQuickListModel.h"
22
22
23#include <paths.h>
23#include <paths.h>
24−#include <QDebug>
25
24
26using namespace unity::shell::launcher;
25using namespace unity::shell::launcher;
27
26
@@ -180,7 +179,6 @@ void MockLauncherItem::setAlerting(bool alerting)
180{
179{
181 if (m_alerting != alerting) {
180 if (m_alerting != alerting) {
182 m_alerting = alerting;
181 m_alerting = alerting;
183− qDebug() << m_appId << "setting alerting" << alerting;
184 Q_EMIT alertingChanged(alerting);
182 Q_EMIT alertingChanged(alerting);
185 }
183 }
186}
184}
tests/qmltests/Launcher/tst_Launcher.qml+1−4
@@ -176,10 +176,7 @@ Rectangle {
176
176
177 Button {
177 Button {
178 text: "set alert"
178 text: "set alert"
179− onClicked: {
180− print("should alert", LauncherModel.get(parseInt(appIdEntryAlert.displayText)).appId)
181− LauncherModel.setAlerting(LauncherModel.get(parseInt(appIdEntryAlert.displayText)).appId, true)
179+ onClicked: LauncherModel.setAlerting(LauncherModel.get(parseInt(appIdEntryAlert.displayText)).appId, true)
182− }
183 }
180 }
184
181
185 TextArea {
182 TextArea {