Qt 4.8
Public Functions | Static Public Functions | Protected Variables | Properties | List of all members
QSpontaneKeyEvent Class Reference

#include <qtestspontaneevent.h>

Public Functions

virtual void dummyFunc ()
 
void ifYouGetCompileErrorHereYouUseWrongQt ()
 
void setSpontaneous ()
 
bool spontaneous ()
 
virtual ~QSpontaneKeyEvent ()
 

Static Public Functions

static void setSpontaneous (QEvent *ev)
 

Protected Variables

void * d
 
ushort t
 

Properties

ushort m_accept: 1
 
ushort posted: 1
 
ushort reserved: 13
 
ushort spont: 1
 

Detailed Description

Definition at line 74 of file qtestspontaneevent.h.

Constructors and Destructors

◆ ~QSpontaneKeyEvent()

virtual QSpontaneKeyEvent::~QSpontaneKeyEvent ( )
inlinevirtual

Definition at line 80 of file qtestspontaneevent.h.

80 {}

Functions

◆ dummyFunc()

virtual void QSpontaneKeyEvent::dummyFunc ( )
inlinevirtual

Definition at line 79 of file qtestspontaneevent.h.

79 {}

◆ ifYouGetCompileErrorHereYouUseWrongQt()

void QSpontaneKeyEvent::ifYouGetCompileErrorHereYouUseWrongQt ( )
inline

Definition at line 83 of file qtestspontaneevent.h.

84  {
85  // this is a static assert in case QEvent changed in Qt
87 
88  // Fixing the warnings about unused variables
92  }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ setSpontaneous() [1/2]

void QSpontaneKeyEvent::setSpontaneous ( )
inline

Definition at line 77 of file qtestspontaneevent.h.

Referenced by QTest::mouseEvent(), and QTest::simulateEvent().

77 { spont = 1; }

◆ setSpontaneous() [2/2]

static void QSpontaneKeyEvent::setSpontaneous ( QEvent ev)
inlinestatic

Definition at line 95 of file qtestspontaneevent.h.

96  {
97  // use a union instead of a reinterpret_cast to prevent alignment warnings
98  union
99  {
100  QSpontaneKeyEvent *skePtr;
101  QEvent *evPtr;
102  } helper;
103 
104  helper.evPtr = ev;
105  helper.skePtr->setSpontaneous();
106  }
The QEvent class is the base class of all event classes.
Definition: qcoreevent.h:56

◆ spontaneous()

bool QSpontaneKeyEvent::spontaneous ( )
inline

Definition at line 78 of file qtestspontaneevent.h.

78 { return spont; }

Properties

◆ d

void* QSpontaneKeyEvent::d
protected

Definition at line 109 of file qtestspontaneevent.h.

◆ m_accept

ushort QSpontaneKeyEvent::m_accept
private

Definition at line 115 of file qtestspontaneevent.h.

◆ posted

ushort QSpontaneKeyEvent::posted
private

Definition at line 113 of file qtestspontaneevent.h.

◆ reserved

ushort QSpontaneKeyEvent::reserved
private

Definition at line 116 of file qtestspontaneevent.h.

◆ spont

ushort QSpontaneKeyEvent::spont
private

Definition at line 114 of file qtestspontaneevent.h.

◆ t

ushort QSpontaneKeyEvent::t
protected

Definition at line 110 of file qtestspontaneevent.h.


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