[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2011-01-27 22:18:32
Message-ID: 20110127221832.6D2E6AC8BB () svn ! kde ! org
[Download RAW message or body]
SVN commit 1217570 by aseigo:
avoid (non-critical) warnings
BUG:264069
M +3 -2 private/tooltip.cpp
M +2 -0 tooltipmanager.cpp
--- trunk/KDE/kdelibs/plasma/private/tooltip.cpp #1217569:1217570
@@ -234,8 +234,9 @@
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>());
--- trunk/KDE/kdelibs/plasma/tooltipmanager.cpp #1217569:1217570
@@ -364,6 +364,7 @@
return;
}
+ 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
@@ -371,6 +372,7 @@
currentWidget = 0;
QMetaObject::invokeMethod(temp, "toolTipAboutToShow");
currentWidget = temp;
+ }
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = \
tooltips.constFind(currentWidget);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic