Qt 4.8
Public Functions | Public Variables | Properties | List of all members
QDeclarativeItemKeyFilter Class Reference

#include <qdeclarativeitem_p.h>

Inheritance diagram for QDeclarativeItemKeyFilter:
QDeclarativeKeyNavigationAttached QDeclarativeKeysAttached

Public Functions

virtual void componentComplete ()
 
virtual void inputMethodEvent (QInputMethodEvent *event, bool post)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
virtual void keyPressed (QKeyEvent *event, bool post)
 
virtual void keyReleased (QKeyEvent *event, bool post)
 
 QDeclarativeItemKeyFilter (QDeclarativeItem *=0)
 
virtual ~QDeclarativeItemKeyFilter ()
 

Public Variables

bool m_processPost
 

Properties

QDeclarativeItemKeyFilterm_next
 

Detailed Description

Definition at line 356 of file qdeclarativeitem_p.h.

Constructors and Destructors

◆ QDeclarativeItemKeyFilter()

QDeclarativeItemKeyFilter::QDeclarativeItemKeyFilter ( QDeclarativeItem item = 0)

Definition at line 412 of file qdeclarativeitem.cpp.

413 : m_processPost(false), m_next(0)
414 {
416  item?static_cast<QDeclarativeItemPrivate *>(QGraphicsItemPrivate::get(item)):0;
417  if (p) {
418  m_next = p->keyHandler;
419  p->keyHandler = this;
420  }
421 }
QDeclarativeItemKeyFilter * m_next
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
QDeclarativeItemKeyFilter * keyHandler

◆ ~QDeclarativeItemKeyFilter()

QDeclarativeItemKeyFilter::~QDeclarativeItemKeyFilter ( )
virtual

Definition at line 423 of file qdeclarativeitem.cpp.

424 {
425 }

Functions

◆ componentComplete()

void QDeclarativeItemKeyFilter::componentComplete ( )
virtual

Reimplemented in QDeclarativeKeysAttached.

Definition at line 448 of file qdeclarativeitem.cpp.

Referenced by componentComplete().

449 {
451 }
QDeclarativeItemKeyFilter * m_next

◆ inputMethodEvent()

void QDeclarativeItemKeyFilter::inputMethodEvent ( QInputMethodEvent event,
bool  post 
)
virtual

Reimplemented in QDeclarativeKeysAttached.

Definition at line 437 of file qdeclarativeitem.cpp.

Referenced by inputMethodEvent(), and QDeclarativeKeysAttached::inputMethodEvent().

438 {
439  if (m_next) m_next->inputMethodEvent(event, post);
440 }
QDeclarativeItemKeyFilter * m_next
virtual void inputMethodEvent(QInputMethodEvent *event, bool post)

◆ inputMethodQuery()

QVariant QDeclarativeItemKeyFilter::inputMethodQuery ( Qt::InputMethodQuery  query) const
virtual

Reimplemented in QDeclarativeKeysAttached.

Definition at line 442 of file qdeclarativeitem.cpp.

Referenced by inputMethodQuery(), and QDeclarativeKeysAttached::inputMethodQuery().

443 {
444  if (m_next) return m_next->inputMethodQuery(query);
445  return QVariant();
446 }
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
QDeclarativeItemKeyFilter * m_next
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const

◆ keyPressed()

void QDeclarativeItemKeyFilter::keyPressed ( QKeyEvent event,
bool  post 
)
virtual

Reimplemented in QDeclarativeKeysAttached, and QDeclarativeKeyNavigationAttached.

Definition at line 427 of file qdeclarativeitem.cpp.

Referenced by keyPressed(), QDeclarativeKeyNavigationAttached::keyPressed(), and QDeclarativeKeysAttached::keyPressed().

428 {
429  if (m_next) m_next->keyPressed(event, post);
430 }
QDeclarativeItemKeyFilter * m_next
virtual void keyPressed(QKeyEvent *event, bool post)

◆ keyReleased()

void QDeclarativeItemKeyFilter::keyReleased ( QKeyEvent event,
bool  post 
)
virtual

Reimplemented in QDeclarativeKeysAttached, and QDeclarativeKeyNavigationAttached.

Definition at line 432 of file qdeclarativeitem.cpp.

Referenced by keyReleased(), QDeclarativeKeyNavigationAttached::keyReleased(), and QDeclarativeKeysAttached::keyReleased().

433 {
434  if (m_next) m_next->keyReleased(event, post);
435 }
QDeclarativeItemKeyFilter * m_next
virtual void keyReleased(QKeyEvent *event, bool post)

Properties

◆ m_next

QDeclarativeItemKeyFilter* QDeclarativeItemKeyFilter::m_next
private

◆ m_processPost

bool QDeclarativeItemKeyFilter::m_processPost

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