get sizing right when setContent is called and the tip is already visible

CCBUG:180423

svn path=/branches/KDE/4.2/kdelibs/; revision=911228
This commit is contained in:
Aaron J. Seigo 2009-01-15 06:02:20 +00:00
parent d920300656
commit bddaa1125d
2 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,8 @@ ToolTip::~ToolTip()
void ToolTip::checkSize()
{
//FIXME: layout bugs even on qlayouts? oh, please, no.
d->text->setMinimumSize(0, 0);
d->text->setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
d->text->setMinimumSize(d->text->minimumSizeHint());
d->text->setMaximumSize(d->text->maximumSizeHint());

View File

@ -217,6 +217,8 @@ void ToolTipManager::setContent(QGraphicsWidget *widget, const ToolTipContent &d
}
d->tipWidget->setContent(widget, data);
d->tipWidget->prepareShowing();
d->tipWidget->moveTo(m_corona->popupPosition(d->currentWidget, d->tipWidget->size()));
}
}