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:
Aaron J. Seigo 2008-12-28 23:52:41 +00:00
parent c0496911af
commit e193aaa46e

View File

@ -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();
}