![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Widgets/ctkToolTipTrapper.h>
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 |
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.
typedef QObject ctkToolTipTrapper::Superclass |
Definition at line 76 of file ctkToolTipTrapper.h.
|
explicit |
Constructs a ToolTip trapper which is a child of objectParent.
|
explicit |
|
virtual |
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.
|
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.
|
slot |
bool ctkToolTipTrapper::toolTipsTrapped | ( | ) | const |
Returns true if the tooltips are trapped to prevent them from appearing.
bool ctkToolTipTrapper::toolTipsWordWrapped | ( | ) | const |
Returns true if the tooltips are word wrapped.
|
protected |
Definition at line 102 of file ctkToolTipTrapper.h.
|
readwrite |
Definition at line 1 of file ctkToolTipTrapper.h.
|
readwrite |
Definition at line 1 of file ctkToolTipTrapper.h.