while getting the size wrong is bad, flickering like crazy is even worse =)
resize after the contents have been set to get a rational size out of the widget. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770966
This commit is contained in:
parent
e3c3b847f6
commit
abd8d94daa
@ -181,16 +181,13 @@ ToolTip::ToolTip()
|
||||
void ToolTip::setData(const Plasma::ToolTipData &data)
|
||||
{
|
||||
//reset our size
|
||||
setVisible(false);
|
||||
resize(0, 0);
|
||||
resize(sizeHint());
|
||||
setVisible(true);
|
||||
|
||||
d->label->setText("<qt><b>" + data.mainText + "</b><br>" +
|
||||
data.subText + "</qt>");
|
||||
d->imageLabel->setPixmap(data.image);
|
||||
d->windowToPreview = data.windowToPreview;
|
||||
d->preview->setWindowId( d->windowToPreview );
|
||||
|
||||
resize(sizeHint());
|
||||
}
|
||||
|
||||
ToolTip::~ToolTip()
|
||||
|
Loading…
Reference in New Issue
Block a user