label显示超长省略时,增加tooltips
This commit is contained in:
parent
9ffdddeb4c
commit
68a5346fe5
|
@ -152,4 +152,6 @@ void LeftsiderbarWidget::paintEvent(QPaintEvent *event)
|
|||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
||||
|
||||
m_titleLabel->setElidedText(tr("Backup & Restore"));
|
||||
if (m_titleLabel->text() != tr("Backup & Restore"))
|
||||
m_titleLabel->setToolTip(tr("Backup & Restore"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue