* 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:
Aaron J. Seigo 2008-09-18 21:53:52 +00:00
parent 1cb382a09a
commit 832782fa73
2 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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();