This commit is contained in:
Aaron Seigo 2011-07-11 21:30:00 +02:00 committed by David Faure
parent 45e428dec5
commit ef6b65c2b1

View File

@ -321,12 +321,8 @@ void ToolTip::setContent(QObject *tipper, const ToolTipContent &data)
void ToolTip::prepareShowing()
{
if (!d->preview->isEmpty()) {
// show/hide the preview area
d->preview->show();
} else {
d->preview->hide();
}
// show/hide the preview area
d->preview->setVisible(!d->preview->isEmpty());
layout()->activate();
d->preview->setInfo();