summaryrefslogtreecommitdiffstats
path: root/src/plugins/generic
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2010-02-10 15:31:13 (GMT)
committerJeremy Katz <jeremy.katz@nokia.com>2010-02-10 15:31:13 (GMT)
commit5dcacb00fd68e6cc2bf3e6a467b603f387cb1a60 (patch)
tree45b73fb93cc61a2c612dfda951babdd9e3d9ab91 /src/plugins/generic
parent7651a4bacf8f34f3700853f147093a073f0472ab (diff)
downloadQt-5dcacb00fd68e6cc2bf3e6a467b603f387cb1a60.zip
Qt-5dcacb00fd68e6cc2bf3e6a467b603f387cb1a60.tar.gz
Qt-5dcacb00fd68e6cc2bf3e6a467b603f387cb1a60.tar.bz2
Move user event handling into QWindowSystemInterface class
This currently includes mouse, wheel, keyboard, enter, leave, geometry, and close events. Windowing system plugins should limit themselves to the QWindowSystemInterface::handle*Event() methods, as the other methods will likely become private.
Diffstat (limited to 'src/plugins/generic')
-rw-r--r--src/plugins/generic/linuxinput/qlinuxinput.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/generic/linuxinput/qlinuxinput.cpp b/src/plugins/generic/linuxinput/qlinuxinput.cpp
index 363e91f..32137ee 100644
--- a/src/plugins/generic/linuxinput/qlinuxinput.cpp
+++ b/src/plugins/generic/linuxinput/qlinuxinput.cpp
@@ -46,7 +46,7 @@
#include <QSocketNotifier>
#include <QStringList>
#include <QPoint>
-#include <private/qapplication_p.h>
+#include <QWindowSystemInterface>
#include <qkbd_qws.h>
@@ -141,13 +141,13 @@ void QLinuxInputMouseHandler::readMouseData()
} else if (data->code == ABS_WHEEL) { // vertical scroll
// data->value: 1 == up, -1 == down
int delta = 120 * data->value;
- QApplicationPrivate::handleWheelEvent(0, QPoint(m_x, m_y),
+ QWindowSystemInterface::handleWheelEvent(0, QPoint(m_x, m_y),
QPoint(m_x, m_y),
delta, Qt::Vertical);
} else if (data->code == ABS_THROTTLE) { // horizontal scroll
// data->value: 1 == right, -1 == left
int delta = 120 * -data->value;
- QApplicationPrivate::handleWheelEvent(0, QPoint(m_x, m_y),
+ QWindowSystemInterface::handleWheelEvent(0, QPoint(m_x, m_y),
QPoint(m_x, m_y),
delta, Qt::Horizontal);
} else {
@@ -167,7 +167,7 @@ void QLinuxInputMouseHandler::readMouseData()
else
m_buttons &= ~button;
- QApplicationPrivate::handleMouseEvent(0, QPoint(m_x, m_y),
+ QWindowSystemInterface::handleMouseEvent(0, QPoint(m_x, m_y),
QPoint(m_x, m_y), m_buttons);
} else if (data->type == EV_SYN && data->code == SYN_REPORT) {
if (!posChanged)
@@ -175,7 +175,7 @@ void QLinuxInputMouseHandler::readMouseData()
posChanged = false;
QPoint pos(m_x, m_y);
- QApplicationPrivate::handleMouseEvent(0, pos, pos, m_buttons);
+ QWindowSystemInterface::handleMouseEvent(0, pos, pos, m_buttons);
// pos = m_handler->transform(pos);
//m_handler->limitToScreen(pos);