From 43214b60daa04bb677335b0a6664993c92ed8bd7 Mon Sep 17 00:00:00 2001 From: listenerri Date: Fri, 31 Aug 2018 16:06:34 +0800 Subject: [PATCH] add debug info about app item name, id, icon Change-Id: If9c686eb41ca30ee55a0ef938665a9cab24c2de1 --- frame/item/appitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index ff9fc0e39..5d893b1fc 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -290,6 +290,8 @@ void AppItem::mouseReleaseEvent(QMouseEvent *e) if (e->button() == Qt::MiddleButton) { m_itemEntryInter->NewInstance(QX11Info::getTimestamp()); } else if (e->button() == Qt::LeftButton) { + qDebug() << "app item clicked, name:" << m_itemEntryInter->name() + << "id:" << m_itemEntryInter->id() << "my-id:" << m_id << "icon:" << m_itemEntryInter->icon(); m_itemEntryInter->Activate(QX11Info::getTimestamp()); @@ -521,7 +523,7 @@ void AppItem::refershIcon() if (m_appIcon.isNull()) { if (m_retryTimes < 5) { m_retryTimes++; - qDebug() << m_itemEntryInter->name() << "obtain app icon failed, retry times" << m_retryTimes; + qDebug() << m_itemEntryInter->name() << "obtain app icon(" << icon << ")failed, retry times:" << m_retryTimes; m_retryObtainIconTimer->start(); } return;