CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Slots | Public Member Functions | Protected Attributes | Properties | List of all members
ctkToolTipTrapper Class Reference

#include <Libs/Widgets/ctkToolTipTrapper.h>

Inheritance diagram for ctkToolTipTrapper:
Inheritance graph
[legend]
Collaboration diagram for ctkToolTipTrapper:
Collaboration graph
[legend]

Public Types

typedef QObject Superclass
 

Public Slots

void setToolTipsTrapped (bool toolTipsTrapped)
 
void setToolTipsWordWrapped (bool toolTipsWordWrapped)
 

Public Member Functions

 ctkToolTipTrapper (bool toolTipsTrapped, bool toolTipsWordWordWrapped, QObject *objectParent=0)
 
 ctkToolTipTrapper (QObject *objectParent=0)
 Constructs a ToolTip trapper which is a child of objectParent. More...
 
bool eventFilter (QObject *watched, QEvent *event)
 
bool toolTipsTrapped () const
 Returns true if the tooltips are trapped to prevent them from appearing. More...
 
bool toolTipsWordWrapped () const
 Returns true if the tooltips are word wrapped. More...
 
virtual ~ctkToolTipTrapper ()
 

Protected Attributes

QScopedPointer< ctkToolTipTrapperPrivate > d_ptr
 

Properties

bool toolTipsTrapped
 
bool toolTipsWordWrapped
 

Detailed Description

Filters tooltips, to prevent tooltips from appearing or to word wrap tooltips. If toolTipsTrapped or toolTipsWordWrapped is true, installs an event filter to trap or wrap tooltips. If toolTipsTrapped and toolTipsWordWrapped are false, does not install the event filter. Tooltips are trapped and not word wrapped by default.

Definition at line 70 of file ctkToolTipTrapper.h.

Member Typedef Documentation

◆ Superclass

Definition at line 76 of file ctkToolTipTrapper.h.

Constructor & Destructor Documentation

◆ ctkToolTipTrapper() [1/2]

ctkToolTipTrapper::ctkToolTipTrapper ( QObject *  objectParent = 0)
explicit

Constructs a ToolTip trapper which is a child of objectParent.

◆ ctkToolTipTrapper() [2/2]

ctkToolTipTrapper::ctkToolTipTrapper ( bool  toolTipsTrapped,
bool  toolTipsWordWordWrapped,
QObject *  objectParent = 0 
)
explicit

◆ ~ctkToolTipTrapper()

virtual ctkToolTipTrapper::~ctkToolTipTrapper ( )
virtual

Member Function Documentation

◆ eventFilter()

bool ctkToolTipTrapper::eventFilter ( QObject *  watched,
QEvent *  event 
)

Automatically called when the tooltips are trapped or word wrapped. You shouldn't have to call it manually.

◆ setToolTipsTrapped

void ctkToolTipTrapper::setToolTipsTrapped ( bool  toolTipsTrapped)
slot

If true, installs the eventFilter on the application if it isn't already installed. Otherwise, removes the eventFilter if tooltips are neither trapped nor word wrapped.

◆ setToolTipsWordWrapped

void ctkToolTipTrapper::setToolTipsWordWrapped ( bool  toolTipsWordWrapped)
slot

◆ toolTipsTrapped()

bool ctkToolTipTrapper::toolTipsTrapped ( ) const

Returns true if the tooltips are trapped to prevent them from appearing.

◆ toolTipsWordWrapped()

bool ctkToolTipTrapper::toolTipsWordWrapped ( ) const

Returns true if the tooltips are word wrapped.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkToolTipTrapperPrivate> ctkToolTipTrapper::d_ptr
protected

Definition at line 102 of file ctkToolTipTrapper.h.

Property Documentation

◆ toolTipsTrapped

bool ctkToolTipTrapper::toolTipsTrapped
readwrite

Definition at line 1 of file ctkToolTipTrapper.h.

◆ toolTipsWordWrapped

bool ctkToolTipTrapper::toolTipsWordWrapped
readwrite

Definition at line 1 of file ctkToolTipTrapper.h.


The documentation for this class was generated from the following file: