mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat(dde-dock): add 2d three point for bug 6378
This commit is contained in:
parent
7fece61e31
commit
2803ddcca7
@ -113,8 +113,9 @@ void AppSnapshot::compositeChanged() const
|
|||||||
void AppSnapshot::setWindowInfo(const WindowInfo &info)
|
void AppSnapshot::setWindowInfo(const WindowInfo &info)
|
||||||
{
|
{
|
||||||
m_windowInfo = info;
|
m_windowInfo = info;
|
||||||
|
QFontMetrics fm(m_title->font());
|
||||||
m_title->setText(m_windowInfo.title);
|
QString strTtile = m_title->fontMetrics().elidedText(m_windowInfo.title, Qt::ElideRight, width());
|
||||||
|
m_title->setText(strTtile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppSnapshot::dragEnterEvent(QDragEnterEvent *e)
|
void AppSnapshot::dragEnterEvent(QDragEnterEvent *e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user