set tooltip for titlebar and menu #20

This commit is contained in:
Yozka
2019-01-23 11:43:07 +05:00
committed by yozka
parent 1ad6caeb8a
commit 6fc8964ffc
9 changed files with 119 additions and 16 deletions

View File

@@ -88,7 +88,9 @@ CElidingLabel::CElidingLabel(const QString& text, QWidget* parent, Qt::WindowFla
d(new ElidingLabelPrivate(this))
{
d->Text = text;
#ifndef QT_NO_TOOLTIP
setToolTip(text);
#endif
}
@@ -183,7 +185,9 @@ void CElidingLabel::setText(const QString &text)
else
{
d->Text = text;
#ifndef QT_NO_TOOLTIP
setToolTip( text );
#endif
d->elideText(this->size().width());
}
}