corrected sizing problem

animation jumps a bit less randomly
BUG: 176672

svn path=/trunk/KDE/kdelibs/; revision=893099
This commit is contained in:
Marco Martin 2008-12-05 22:48:58 +00:00
parent b47c32869f
commit ba43ebdd06

View File

@ -160,6 +160,8 @@ ToolTip::~ToolTip()
void ToolTip::checkSize()
{
//FIXME: layout bugs even on qlayouts? oh, please, no.
d->text->setMinimumSize(d->text->minimumSizeHint());
QSize hint = sizeHint();
QSize current = size();
@ -183,7 +185,7 @@ void ToolTip::checkSize()
<< current.height() - hint.height();
*/
resize(hint);
move(x(), y() + (current.height() - hint.height()));
move(x(), y() + (current.height() - size().height()));
}
}