add debug info about app item

name, id, icon

Change-Id: If9c686eb41ca30ee55a0ef938665a9cab24c2de1
This commit is contained in:
listenerri 2018-08-31 16:06:34 +08:00
parent 79f85f3d4a
commit bc10b52c75

View File

@ -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;