mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +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)
|
||||
{
|
||||
m_windowInfo = info;
|
||||
|
||||
m_title->setText(m_windowInfo.title);
|
||||
QFontMetrics fm(m_title->font());
|
||||
QString strTtile = m_title->fontMetrics().elidedText(m_windowInfo.title, Qt::ElideRight, width());
|
||||
m_title->setText(strTtile);
|
||||
}
|
||||
|
||||
void AppSnapshot::dragEnterEvent(QDragEnterEvent *e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user