oops don't compile ;) revert the last commit

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833299
This commit is contained in:
Alexis Ménard 2008-07-16 15:52:56 +00:00
parent 21888421bf
commit aa2a6f536d
2 changed files with 12 additions and 0 deletions

View File

@ -183,6 +183,11 @@ void ToolTipManager::setWidgetToolTipContent(QGraphicsWidget *widget,const ToolT
}
}
bool ToolTipManager::widgetHasToolTip(QGraphicsWidget *widget)
{
return d->tooltips.contains(widget);
}
void ToolTipManager::themeUpdated()
{
QMapIterator<QGraphicsWidget*, ToolTip *> iterator(d->tooltips);

View File

@ -125,6 +125,13 @@ namespace Plasma
*/
void setWidgetToolTipContent(QGraphicsWidget *widget,const ToolTipContent &data);
/**
* Function to know if widget has a tooltip registered in the tooltip manager
* @param widget the widget
* @return true if this widget has a tooltip
*/
bool widgetHasToolTip(QGraphicsWidget *widget);
/**
* Reccomended position for a popup window like a menu or a tooltip
* given its size