Qt 4.8
Functions
qeventdispatcher_blackberry_qpa.cpp File Reference
#include "qeventdispatcher_blackberry_qpa_p.h"
#include "qapplication_p.h"
#include <QWindowSystemInterface>

Go to the source code of this file.

Functions

static bool sendWindowSystemEvents (QAbstractEventDispatcher *eventDispatcher, QEventLoop::ProcessEventsFlags flags)
 

Function Documentation

◆ sendWindowSystemEvents()

static bool sendWindowSystemEvents ( QAbstractEventDispatcher eventDispatcher,
QEventLoop::ProcessEventsFlags  flags 
)
static

Definition at line 50 of file qeventdispatcher_blackberry_qpa.cpp.

Referenced by QEventDispatcherBlackberryQPA::processEvents().

51 {
52  int nevents = 0;
53 
54  // handle gui and posted events
56 
57  while (true) {
61  // process a pending user input event
63  if (!event)
64  break;
65  } else {
66  break;
67  }
68 
69  // in contrast to the common QPA version we don't put window system events
70  // into the event filter here, instead native bps events are filtered in
71  // QEventDispatcherBlackberry::select()
72 
73  nevents++;
74 
75  QApplicationPrivate::processWindowSystemEvent(event);
76  delete event;
77  }
78 
79  return (nevents > 0);
80 }
EventRef event
static void sendPostedEvents()
static WindowSystemEvent * getWindowSystemEvent()