avoid (non-critical) warnings
BUG:264069 svn path=/trunk/KDE/kdelibs/; revision=1217570
This commit is contained in:
parent
8c65e607b8
commit
2a916cb089
@ -234,8 +234,9 @@ void ToolTip::hideEvent(QHideEvent *e)
|
||||
QWidget::hideEvent(e);
|
||||
d->animation->stop();
|
||||
|
||||
if (d->source) {
|
||||
QMetaObject::invokeMethod(d->source.data(), "toolTipHidden");
|
||||
QObject *source = d->source.data();
|
||||
if (source && source->metaObject()->indexOfMethod("toolTipHidden()") != -1) {
|
||||
QMetaObject::invokeMethod(source, "toolTipHidden");
|
||||
}
|
||||
|
||||
WindowEffects::highlightWindows(winId(), QList<WId>());
|
||||
|
@ -364,13 +364,15 @@ void ToolTipManagerPrivate::showToolTip()
|
||||
return;
|
||||
}
|
||||
|
||||
// toolTipAboutToShow may call into methods such as setContent which play
|
||||
// with the current widget; so let's just pretend for a moment that we don't have
|
||||
// a current widget
|
||||
QGraphicsWidget *temp = currentWidget;
|
||||
currentWidget = 0;
|
||||
QMetaObject::invokeMethod(temp, "toolTipAboutToShow");
|
||||
currentWidget = temp;
|
||||
if (currentWidget->metaObject()->indexOfMethod("toolTipAboutToShow()") != -1) {
|
||||
// toolTipAboutToShow may call into methods such as setContent which play
|
||||
// with the current widget; so let's just pretend for a moment that we don't have
|
||||
// a current widget
|
||||
QGraphicsWidget *temp = currentWidget;
|
||||
currentWidget = 0;
|
||||
QMetaObject::invokeMethod(temp, "toolTipAboutToShow");
|
||||
currentWidget = temp;
|
||||
}
|
||||
|
||||
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user