* proper invokeMethod call, now items actually get notified when the tip is hidden
* allow throttling of the show call to prevent multiple method invokations on create->show svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862467
This commit is contained in:
parent
1cb382a09a
commit
832782fa73
@ -68,7 +68,7 @@ void ToolTip::hideEvent(QHideEvent *e)
|
||||
{
|
||||
QWidget::hideEvent(e);
|
||||
if (d->source) {
|
||||
QMetaObject::invokeMethod(d->source, SLOT(toolTipHidden()));
|
||||
QMetaObject::invokeMethod(d->source, "toolTipHidden");
|
||||
}
|
||||
}
|
||||
|
||||
@ -123,9 +123,9 @@ void ToolTip::setContent(const ToolTipManager::ToolTipContent &data)
|
||||
}
|
||||
}
|
||||
|
||||
void ToolTip::prepareShowing()
|
||||
void ToolTip::prepareShowing(bool cueUpdate)
|
||||
{
|
||||
if (d->source) {
|
||||
if (cueUpdate && d->source) {
|
||||
QMetaObject::invokeMethod(d->source, "toolTipAboutToShow");
|
||||
}
|
||||
|
||||
@ -138,7 +138,6 @@ void ToolTip::prepareShowing()
|
||||
|
||||
layout()->activate();
|
||||
resize(sizeHint());
|
||||
|
||||
}
|
||||
|
||||
void ToolTip::setActivated(bool value)
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
|
||||
void updateTheme();
|
||||
void setContent(const ToolTipManager::ToolTipContent &data);
|
||||
void prepareShowing();
|
||||
void prepareShowing(bool cueUpdate);
|
||||
void setActivated(bool value);
|
||||
bool isActivated();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user