corrected sizing problem
animation jumps a bit less randomly BUG: 176672 svn path=/trunk/KDE/kdelibs/; revision=893099
This commit is contained in:
parent
b47c32869f
commit
ba43ebdd06
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user