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
da407f77db
commit
43214b60da
Notes:
gerrit
2018-08-31 16:25:48 +08:00
Verified+1: <jenkins@deepin.com> Code-Review+2: listenerri <listenerri@gmail.com> Submitted-by: listenerri <listenerri@gmail.com> Submitted-at: Fri, 31 Aug 2018 16:25:47 +0800 Reviewed-on: https://cr.deepin.io/38132 Project: dde/dde-dock Branch: refs/heads/master
@ -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