cherish
Signals | Public Member Functions | Protected Member Functions | List of all members
CherishApplication Class Reference

Class that is derivative of QApplication and runs the application process. More...

#include <CherishApplication.h>

Inheritance diagram for CherishApplication:

Signals

void setTabletActivity (bool active)
 

Public Member Functions

 CherishApplication (int &argv, char **argc)
 

Protected Member Functions

bool event (QEvent *event) Q_DECL_OVERRIDE
 

Detailed Description

Class that is derivative of QApplication and runs the application process.

Constructor & Destructor Documentation

§ CherishApplication()

CherishApplication::CherishApplication ( int &  argv,
char **  argc 
)

Constructor.

Member Function Documentation

§ event()

bool CherishApplication::event ( QEvent *  event)
protected

A redefined event method which captures Wacom pen's activities (enters or leaves tablet proximity). This method emits setTabletActivity().

Parameters
eventis the event that enters the application.

§ setTabletActivity

void CherishApplication::setTabletActivity ( bool  active)
signal

A signal which connects Wacom pen's activity (on and off) with the corresponding slot at GLWidget. This signal is obsolete for Qt version >= 5.6. But it is necessary for earlier versions, for more details, see: http://stackoverflow.com/questions/31172532/mousepressevent-of-qwidget-gets-called-even-though-qtabletevent-was-accepted/33525420#33525420

Parameters
activeis a boolean variable that denotes whether Wacom pen enters (true) or leaves (false) the tablet proximity.

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