if there's a tooltip set, keep it in sync with the action
svn path=/trunk/KDE/kdelibs/; revision=902698
This commit is contained in:
parent
c0496911af
commit
e193aaa46e
@ -1194,7 +1194,10 @@ void IconWidgetPrivate::syncToAction()
|
||||
q->setText(action->iconText());
|
||||
q->setEnabled(action->isEnabled());
|
||||
q->setVisible(action->isVisible());
|
||||
//TODO use action's tooltip too
|
||||
|
||||
if (!q->toolTip().isEmpty()) {
|
||||
q->setToolTip(action->text());
|
||||
}
|
||||
|
||||
emit q->changed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user