Plasma
tooltipmanager.cpp
Go to the documentation of this file.
266 d->tipWidget->moveTo(corona->popupPosition(referenceWidget, d->tipWidget->size(), Qt::AlignCenter));
307 QObject::connect(tipWidget, SIGNAL(activateWindowByWId(WId,Qt::MouseButtons,Qt::KeyboardModifiers,QPoint)),
309 QObject::connect(tipWidget, SIGNAL(linkActivated(QString,Qt::MouseButtons,Qt::KeyboardModifiers,QPoint)),
398 QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
420 QGraphicsWidget *referenceWidget = tooltip.value().graphicsWidget() ? tooltip.value().graphicsWidget() : currentWidget;
void unregisterWidget(QGraphicsWidget *widget)
Unregisters a widget from the tooltip manager.
Definition: tooltipmanager.cpp:212
void show(QGraphicsWidget *widget)
Show the tooltip for a widget registered in the tooltip manager.
Definition: tooltipmanager.cpp:141
< Will discard tooltip data, and not attempt to show them
Definition: tooltipmanager.h:77
Manages tooltips for QGraphicsWidgets in Plasma.
Definition: tooltipmanager.h:69
Definition: tooltipcontent.h:47
QGraphicsWidget * graphicsWidget() const
the graphicsWidget used for positioning the tooltip, if any
Definition: tooltipcontent.cpp:262
QPoint popupPosition(const QGraphicsItem *item, const QSize &size)
Recommended position for a popup window like a menu or a tooltip given its size.
Definition: corona.cpp:459
void clearContent(QGraphicsWidget *widget)
Clears the tooltip data associated with this widget, but keeps the widget registered.
Definition: tooltipmanager.cpp:272
void registerWidget(QGraphicsWidget *widget)
Registers a widget with the tooltip manager.
Definition: tooltipmanager.cpp:200
Direction locationToDirection(Location location)
Converts a location to a direction.
Definition: plasma.cpp:51
void hide(QGraphicsWidget *widget)
Hides the tooltip for a widget immediately.
Definition: tooltipmanager.cpp:188
< Will accept tooltip data, but not show tooltips
Definition: tooltipmanager.h:76
bool isInstantPopup() const
Whether or not the tooltip should popup instantly when the widget is hovered, defaults to false...
Definition: tooltipcontent.cpp:210
bool isVisible(QGraphicsWidget *widget) const
Find out whether the tooltip for a given widget is currently being displayed.
Definition: tooltipmanager.cpp:170
void setContent(QGraphicsWidget *widget, const ToolTipContent &data)
Sets the content for the tooltip associated with a widget.
Definition: tooltipmanager.cpp:229
void setState(ToolTipManager::State state)
Sets the current state of the manager.
Definition: tooltipmanager.cpp:277
bool autohide() const
Whether or not to autohide the tooltip, defaults to true.
Definition: tooltipcontent.cpp:200
< Will accept tooltip data and show tooltips
Definition: tooltipmanager.h:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.