SVN_SILENT a few bits of code consistency

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833494
This commit is contained in:
Aaron J. Seigo 2008-07-16 21:48:52 +00:00
parent 504ebb9e0c
commit 853b6a1f93

View File

@ -173,11 +173,13 @@ void ToolTipManager::registerWidget(QGraphicsWidget *widget)
void ToolTipManager::unregisterWidget(QGraphicsWidget *widget)
{
if (d->tooltips.contains(widget)) {
ToolTip * tooltip = d->tooltips.take(widget);
if (tooltip) {
delete tooltip;
}
if (!d->tooltips.contains(widget)) {
return;
}
ToolTip * tooltip = d->tooltips.take(widget);
if (tooltip) {
delete tooltip;
}
}
@ -186,11 +188,10 @@ void ToolTipManager::setWidgetToolTipContent(QGraphicsWidget *widget,const ToolT
if (!d->tooltips.contains(widget)) {
return;
}
else {
ToolTip * tooltip = d->tooltips.value(widget);
tooltip->setContent(data);
tooltip->updateTheme();
}
ToolTip * tooltip = d->tooltips.value(widget);
tooltip->setContent(data);
tooltip->updateTheme();
}
bool ToolTipManager::widgetHasToolTip(QGraphicsWidget *widget)