util
KDevelop::ActiveToolTip Class Reference
This class implements a tooltip that can contain arbitrary widgets that the user can interact with. More...
#include <activetooltip.h>

Signals | |
| void | resized () |
Public Member Functions | |
| ActiveToolTip (QWidget *parent, const QPoint &position) | |
| void | addExtendRect (QRect rect) |
| void | addFriendWidget (QWidget *widget) |
| void | adjustRect () |
| bool | eventFilter (QObject *object, QEvent *e) |
| bool | insideThis (QObject *object) |
| void | moveEvent (QMoveEvent *) |
| void | resizeEvent (QResizeEvent *) |
| void | setBoundingGeometry (QRect geometry) |
| void | showEvent (QShowEvent *) |
Static Public Member Functions | |
| static void | showToolTip (ActiveToolTip *tooltip, float priority=100, QString uniqueId=QString()) |
Detailed Description
This class implements a tooltip that can contain arbitrary widgets that the user can interact with.
Usage example: KDevelop::ActiveToolTip* tooltip = new KDevelop::ActiveToolTip(mainWindow, QCursor::pos()); QVBoxLayout* layout = new QVBoxLayout(tooltip); layout->addWidget(widget); tooltip->resize( tooltip->sizeHint() ); ActiveToolTip::showToolTip(tooltip);
Definition at line 45 of file activetooltip.h.
Member Function Documentation
| void KDevelop::ActiveToolTip::addExtendRect | ( | QRect | rect | ) |
Add a rectangle to the area in which the mouse can be moved freely without hiding the tooltip.
Definition at line 182 of file activetooltip.cpp.
| void KDevelop::ActiveToolTip::addFriendWidget | ( | QWidget * | widget | ) |
Clicks within the friend widget are allowed.
Definition at line 136 of file activetooltip.cpp.
| void KDevelop::ActiveToolTip::setBoundingGeometry | ( | QRect | geometry | ) |
Set the area within which the mouse can be moved freely without hiding the tooltip.
Definition at line 196 of file activetooltip.cpp.
| void KDevelop::ActiveToolTip::showToolTip | ( | KDevelop::ActiveToolTip * | tooltip, | |
| float | priority = 100, |
|||
| QString | uniqueId = QString() | |||
| ) | [static] |
Shows and registers the given tool-tip.
This should be used instead of just calling show() to make multiple different tooltips work together. The tooltip is owned by the manager after this is called. It will delete itself.
- Parameters:
-
tooltip The tooltip to show. It should not be visible yet, show() will eventually be called from here, with some delay. The ownership stays with the caller. priority The priority of this tooltip. Lower is better. Multiple tooltips will be stacked down in the given order. If it is zero, the given tooltip will be shown exclusively. uniqueId If this is nonempty, ActiveTooltip will make sure that only one tooltip with the given id is shown at a time
Definition at line 285 of file activetooltip.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference