44 #include <QAbstractEventDispatcher> 45 #include <private/qlocale_p.h> 169 text, autorep, count);
173 Qt::KeyboardModifiers modifiers,
187 nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count);
212 int ret = windowSystemEventQueue.count();
221 if (windowSystemEventQueue.isEmpty())
224 ret = windowSystemEventQueue.takeFirst();
232 windowSystemEventQueue.append(ev);
251 Qt::TouchPointStates states;
256 while (point != end) {
259 states |= point->state;
260 Qt::TouchPointStates state = point->state;
261 if (point->isPrimary) {
static void updateSystemPrivate()
void setScreenPos(const QPointF &screenPos)
#define QT_END_NAMESPACE
This macro expands to.
The QMutex class provides access serialization between threads.
void setRect(const QRectF &rect)
static void handleWheelEvent(QWidget *w, const QPoint &local, const QPoint &global, int d, Qt::Orientation o)
static void handleScreenAvailableGeometryChange(int screenIndex)
static void handleScreenGeometryChange(int screenIndex)
static void handleKeyEvent(QWidget *w, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
The QList::const_iterator class provides an STL-style const iterator for QList and QQueue...
The QString class provides a Unicode character string.
void setNormalizedPos(const QPointF &normalizedPos)
DeviceType
This enum represents the type of device that generated a QTouchEvent.
static int windowSystemEventsQueued()
static void handleTouchEvent(QWidget *w, QEvent::Type type, QTouchEvent::DeviceType devType, const QList< struct TouchPoint > &points)
void setState(Qt::TouchPointStates state)
void append(const T &t)
Inserts value at the end of the list.
static QList< WindowSystemEvent * > windowSystemEventQueue
The QTime class provides clock time functions.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void handleWindowActivated(QWidget *w)
static void handleMouseEvent(QWidget *w, const QPoint &local, const QPoint &global, Qt::MouseButtons b)
tlw == 0 means that ev is in global coords only
static void handleLocaleChange()
static const char * data(const QByteArray &arr)
static void queueWindowSystemEvent(WindowSystemEvent *ev)
static void handleCloseEvent(QWidget *w)
virtual void wakeUp()=0
Wakes up the event loop.
static void handleExtendedKeyEvent(QWidget *w, QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text=QString(), bool autorep=false, ushort count=1)
static void handleWindowStateChanged(QWidget *w, Qt::WindowState newState)
int elapsed() const
Returns the number of milliseconds that have elapsed since the last time start() or restart() was cal...
static WindowSystemEvent * getWindowSystemEvent()
Type
This enum type defines the valid event types in Qt.
static void handlePlatformPanelEvent(QWidget *w)
The QPoint class defines a point in the plane using integer precision.
int size() const
Returns the number of items in the list.
static void handleGeometryChange(QWidget *w, const QRect &newRect)
void setPressure(qreal pressure)
The QRect class defines a rectangle in the plane using integer precision.
The TouchPoint class provides information about a touch point in a QTouchEvent.
QPointer< QWidget > qt_last_mouse_receiver
static void handleScreenCountChange(int count)
static const KeyPair *const end
static void handleEnterEvent(QWidget *w)
static void handleLeaveEvent(QWidget *w)
The QAbstractEventDispatcher class provides an interface to manage Qt's event queue.
The QList class is a template class that provides lists.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...