mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
add debug info about app item
name, id, icon Change-Id: If9c686eb41ca30ee55a0ef938665a9cab24c2de1
This commit is contained in:
parent
79f85f3d4a
commit
bc10b52c75
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user