on xenial help sign in
cleanup
commita2669ebee938ae042877e7ec0d31ef828dd1e7d9 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 13 May 2016, 13:28 (10 years ago) parente053239
4 files changed+1−17
plugins/Unity/Launcher/launchermodel.cpp−1 qml/Launcher/LauncherPanel.qml−10 tests/mocks/Unity/Launcher/MockLauncherItem.cpp−2 tests/qmltests/Launcher/tst_Launcher.qml+1−4
plugins/Unity/Launcher/launchermodel.cpp−1
@@ -490,7 +490,6 @@ void LauncherModel::refresh()
490490
491491void LauncherModel::alert(const QString &appId)
492492{
493− qDebug() << "alerting for appId" << appId;
494493 int idx = findApplication(appId);
495494 if (idx >= 0) {
496495 LauncherItem *item = m_list.at(idx);
qml/Launcher/LauncherPanel.qml−10
@@ -244,15 +244,6 @@ Rectangle {
244244 maxAngle: 55
245245 property bool dragging: false
246246
247− Timer {
248− interval: 1000
249− running: index == 2
250− repeat: true
251− onTriggered: {
252− print("is alerting", model.alerting)
253− }
254− }
255−
256247 SequentialAnimation {
257248 id: peekingAnimation
258249
@@ -284,7 +275,6 @@ Rectangle {
284275 }
285276
286277 onAlertingChanged: {
287− print("panel alerting changed", alerting)
288278 if(alerting) {
289279 if (!dragging && (launcherListView.peekingIndex === -1 || launcher.visibleWidth > 0)) {
290280 launcherListView.moveToIndex(index)
tests/mocks/Unity/Launcher/MockLauncherItem.cpp−2
@@ -21,7 +21,6 @@
2121#include "MockQuickListModel.h"
2222
2323#include <paths.h>
24−#include <QDebug>
2524
2625using namespace unity::shell::launcher;
2726
@@ -180,7 +179,6 @@ void MockLauncherItem::setAlerting(bool alerting)
180179{
181180 if (m_alerting != alerting) {
182181 m_alerting = alerting;
183− qDebug() << m_appId << "setting alerting" << alerting;
184182 Q_EMIT alertingChanged(alerting);
185183 }
186184}
tests/qmltests/Launcher/tst_Launcher.qml+1−4
@@ -176,10 +176,7 @@ Rectangle {
176176
177177 Button {
178178 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)
182− }
179+ onClicked: LauncherModel.setAlerting(LauncherModel.get(parseInt(appIdEntryAlert.displayText)).appId, true)
183180 }
184181
185182 TextArea {