set tooltip for titlebar and menu #20
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user