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
QWidget * activeModalWidget()
Type type() const
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
QGraphicsScene * scene() const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Manages tooltips for QGraphicsWidgets in Plasma.
Definition: tooltipmanager.h:69
Definition: tooltipcontent.h:47
virtual bool event(QEvent *e)
QGraphicsWidget * graphicsWidget() const
the graphicsWidget used for positioning the tooltip, if any
Definition: tooltipcontent.cpp:262
QPointF pos() const
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 installEventFilter(QObject *filterObj)
void registerWidget(QGraphicsWidget *widget)
Registers a widget with the tooltip manager.
Definition: tooltipmanager.cpp:200
virtual bool eventFilter(QObject *watched, QEvent *event)
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 invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
bool isInstantPopup() const
Whether or not the tooltip should popup instantly when the widget is hovered, defaults to false...
Definition: tooltipcontent.cpp:210
typedef MouseButtons
bool isVisible(QGraphicsWidget *widget) const
Find out whether the tooltip for a given widget is currently being displayed.
Definition: tooltipmanager.cpp:170
QWidget * activePopupWidget()
bool closingDown()
void setContent(QGraphicsWidget *widget, const ToolTipContent &data)
Sets the content for the tooltip associated with a widget.
Definition: tooltipmanager.cpp:229
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setState(ToolTipManager::State state)
Sets the current state of the manager.
Definition: tooltipmanager.cpp:277
QPointF lastPos() const
bool autohide() const
Whether or not to autohide the tooltip, defaults to true.
Definition: tooltipcontent.cpp:200
void destroyed(QObject *obj)
void removeEventFilter(QObject *obj)
< Will accept tooltip data and show tooltips
Definition: tooltipmanager.h:75
typedef KeyboardModifiers
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.