• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

util

KDevelop::ActiveToolTip

KDevelop::ActiveToolTip Class Reference

This class implements a tooltip that can contain arbitrary widgets that the user can interact with. More...

#include <activetooltip.h>

Inheritance diagram for KDevelop::ActiveToolTip:
Inheritance graph
[legend]

List of all members.

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:
  • activetooltip.h
  • activetooltip.cpp

util

Skip menu "util"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal