on xenial help sign in
qDebug--, comments++
commitdca7299a8b2b3581644ff0152720870ade7d474e authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 11 Sep 2013, 19:04 (13 years ago) parent4cb1dd6
2 files changed+2−5
plugins/Unity/Launcher/launchermodel.cpp−5 tests/plugins/Unity/Launcher/launchermodeltest.cpp+2
plugins/Unity/Launcher/launchermodel.cpp−5
@@ -23,8 +23,6 @@
2323
2424#include <unity/shell/application/ApplicationInfoInterface.h>
2525
26−#include <QDebug>
27−
2826using namespace unity::shell::application;
2927
3028LauncherModel::LauncherModel(QObject *parent):
@@ -203,8 +201,6 @@ ApplicationManagerInterface *LauncherModel::applicationManager() const
203201
204202void LauncherModel::setApplicationManager(unity::shell::application::ApplicationManagerInterface *appManager)
205203{
206− qDebug() << "setting appmanager" << appManager;
207−
208204 // Is there already another appmanager set?
209205 if (m_appManager) {
210206 // Disconnect any signals
@@ -301,7 +297,6 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
301297 if (found) {
302298 // Shall we paint some running/recent app highlight? If yes, do it here.
303299 } else {
304− qDebug() << "Adding app icon" << app->icon();
305300 LauncherItem *item = new LauncherItem(app->appId(), app->name(), app->icon().toString());
306301 item->setRecent(true);
307302 item->setFocused(app->focused());
tests/plugins/Unity/Launcher/launchermodeltest.cpp+2
@@ -26,6 +26,7 @@
2626
2727#include <QtTest>
2828
29+// This is a mock, specifically to test the LauncherModel
2930class MockApp: public unity::shell::application::ApplicationInfoInterface
3031{
3132 Q_OBJECT
@@ -46,6 +47,7 @@ private:
4647 bool m_focused;
4748};
4849
50+// This is a mock, specifically to test the LauncherModel
4951class MockAppManager: public unity::shell::application::ApplicationManagerInterface
5052{
5153 Q_OBJECT