sometimes the tooltip is shown before it take his correct position
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854008
This commit is contained in:
parent
0df88727ef
commit
a32ca528f0
@ -137,11 +137,6 @@ void ToolTip::prepareShowing()
|
||||
layout()->activate();
|
||||
resize(sizeHint());
|
||||
|
||||
if (isVisible()) {
|
||||
d->preview->setInfo();
|
||||
} else {
|
||||
show();
|
||||
}
|
||||
}
|
||||
|
||||
void ToolTip::resizeEvent(QResizeEvent *e)
|
||||
|
@ -301,9 +301,11 @@ void ToolTipManagerPrivate::showToolTip()
|
||||
|
||||
ToolTip *tooltip = tooltips.value(currentWidget);
|
||||
if (tooltip) {
|
||||
tooltip->setVisible(false);
|
||||
tooltip->prepareShowing();
|
||||
tooltip->move(popupPosition(currentWidget, tooltip->size()));
|
||||
isShown = true; //ToolTip is visible
|
||||
tooltip->setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user