feat(dde-dock): add 2d three point for bug 6378

This commit is contained in:
chenzhe 2019-12-20 10:22:08 +08:00
parent 7fece61e31
commit 2803ddcca7

View File

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