summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Support Tablet coordinate on Windows with non-zero physical originLuc Devallonne2009-07-101-4/+6
| | | | | | | | | | Most Wacom tablet have a coordinate origin at 0 (Bamboo,Intous), but some tablet (like DTF 720, which have an integrated screen) have a non zero coordinate origin. Which lead to an errounous y/a tablet pos reported by Qt tablet event. Merge-request: 822 Reviewed-by: Norwegian Rock Cat <qt-info@nokia.com>
* Refactored gesture apiDenis Dzyubenko2009-07-021-5/+116
| | | | | | | | | | | | | | | | Rewritten the api almost from scratch, making it simplier and more flexible at the same time. The current implementation will not have complex gseturemanager class inside Qt, but the QGesture base class, which represents both a gesture recognizer and a gesture itself with a set of properties. A set of common gestures that can use used in third-party applications (and in Qt itself internally) is supposed to be found in qstandardgestures.h, and a base class for user-defined gestures is in qgesture.h Gesture implementation for Pan on Windows7 has also been added as a reference implementation for platform gestures.
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-241-0/+6
|\ | | | | | | | | Conflicts: src/gui/kernel/qapplication_x11.cpp
| * Clean up the font hash and palette hash stuff.Norwegian Rock Cat2009-06-231-0/+6
| | | | | | | | | | | | | | | | | | These are used enough (at least on the mac) to justify them being accessible in a private header. As a bonus it "hides" the actual container being used, so we could potentially sway it out with something different. Reviewed by: Jens Bache-Wiig
* | Add QTouchEvent::DeviceType and deviceType()Bradley T. Hughes2009-06-241-1/+6
| | | | | | | | | | | | | | | | | | This enum indicates what kind of device generated the touch event (TouchScreen or TouchPad). We use this information to control how touch events are sent, specifically we restrict touch events to a single widget/QGraphicsItem on touch-pads, since there is no direct relationship between the physical touch location on the pad and the on- using the touch-pad).
* | Change behavior of how touch and mouse events work togetherBradley T. Hughes2009-06-181-1/+1
| | | | | | | | | | | | | | | | We now send both types of events, i.e. accepting TouchBegin doesn't block mouse events anymore. We are also introducing the idea of a "primary" touch point, which is the one that the system is also generating mouse events for. This lets us reuse existing mouse event code while still being able to add multi-touch support.
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-171-2/+2
|\ \ | |/ | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene_p.h
| * Merge license header changes from 4.5Volker Hilsheimer2009-06-161-2/+2
| |\
| | * Update license headers as requested by the marketing department.Jason McDonald2009-06-161-2/+2
| | | | | | | | | | | | Reviewed-by: Trust Me
| | * Long live Qt 4.5!Lars Knoll2009-03-231-0/+438
| |
| * Integrating QProxyStyleJens Bache-Wiig2009-06-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | This class adds convenient support for proxy styles in Qt. Note that to support proper proxying, styles now call their functions through proxy() so that the proxy regains control over subcomponents. Note that there is a small price to be payed by the extra function call which can at the cost of readability be redirected to the private class member in the future. Task-number: 229556 Reviewed-by: trond
* | Merge of masterBradley T. Hughes2009-06-151-1/+3
| |
* | Add multitouch support for the RX-71 deviceBradley T. Hughes2009-06-151-0/+19
| | | | | | | | | | We have to by-pass X11 mouse events when using this device since we are reading directly from the /dev/input/event* device files.
* | Compile on Windows againBradley T. Hughes2009-06-081-1/+1
| |
* | Some API changes after an API review roundBradley T. Hughes2009-06-051-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Don't have QGraphicsSceneTouchEvent::TouchPoint inherit from QTouchEvent::TouchPoint. The only reason to do this is to support an implementation trick, which can be done another way (see below). This means we have to essentially duplicate the API in the GraphicsScene variant. 2. Don't use a list of pointers to touch points in QTouchEvent and QGraphicsSceneTouchEvent. This means we have to make the TouchPoint classes implicitly shared (and the effect of the previous trick of static_casting the widget touch point to a graphics-scene touch point can be emulated by sharing the d-pointers between the classes). 3. QEvent::RawTouch isn't really an event type, it's a backdoor. Remove it and export the bool qt_translateRawTouchEvent(QList<QTouchEvent::TouchPoint>, QWidget *) function instead. 4. Rename QTouchEvent::TouchPoint::area() to size() (which is more clear as to what the function returns). QGraphicsSceneTouchEvent::TouchPoint gains size(), sceneSize(), and screenSize() functions (the actual translation from screen to scene to item still needs to be implemented).
* | Refactor the touch event dispatching code in preparation for allowing ↵Bradley T. Hughes2009-05-281-6/+9
| | | | | | | | | | | | | | | | external event generators This introduces QEvent::RawTouch event type, which should be used by the low-level translator. This raw QTouchEvent can be sent to either QApplication or to a window, and Qt will do the rest to dispatch the touch points to the correct place.
* | Don't try to maintain a current and active list of points for the app and ↵Bradley T. Hughes2009-05-281-7/+3
| | | | | | | | | | | | | | | | widgets/items Instead, build the list of touchPoints per event. This solves the problem when encountering releases early in the active/current list while there are still touch points in move/stationary states (which effectively caused the code to "forget" about the released point).
* | Make Qt::TouchPointState ORable, add Q*TouchEvent::touchPointStates()Bradley T. Hughes2009-05-271-4/+4
| | | | | | | | | | | | | | | | | | | | This new function returns a bitwise OR of all the touch point states for the event. This makes it easy to see if a certain type of state is present or not without the need to loop over all touch points. QApplication and QGraphicsScene need to build this state when dispatching the touch points. This also fixes the ASSERT bug that Denis found when trying to send multiple touch presses in a touch begin event.
* | Fixed mouse event propagation to widgets inside graphicsview - make sureDenis Dzyubenko2009-05-181-1/+2
| | | | | | | | spontaneous flag is preserved.
* | Support multiple touch targets in QGraphicsViewBradley T. Hughes2009-05-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This required a larger change to the kernel and graphicsview directories to make this as efficient as possible: 1. QTouchEvent::TouchPoint becomes the base for QGraphicsSceneTouchEvent::TouchPoint - this means there is one private for every touch point, and we can store both the screen and scene coordinates in one place. Converting a QTouchEvent to QGraphicsSceneTouchEvent becomes nothing more than casting the QTouchEvent::TouchPoints to QGraphicsSceneTouchEvent::TouchPoints. 2. The logic that we use in QApplication to convert WM_TOUCH* messages to QTouchEvents is essentially duplicated (with some minor changes) to QGraphicsScene so that it can support mulitple touch item targets. I will have to investigate how I can perhaps merge some of the duplicated code. QEvent::GraphicsSceneTouchBegin propagation is not implemented yet, and will come in a later commit
* | Don't store the current list of touch points for a widget in QWidgetPrivateBradley T. Hughes2009-05-121-2/+5
| | | | | | | | This is information that's maintained by QApplication, so it belongs there instead.
* | Removed all weird qHash usage for gesture identification.Denis Dzyubenko2009-05-111-2/+2
| |
* | Store the QGestureManager in QApplicationPrivateBradley T. Hughes2009-05-111-0/+2
| | | | | | | | | | ... since we don't want these to persist after QApplication has been destroyed
* | Modifications after the api review by Brad.Denis Dzyubenko2009-05-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Gesture types are now separated to internal ones, which are listed as enums (though they might be converted to strings internally), and third party gestures which are referenced by strings. From now on QGesture objects derive from QObject, which means third party gesture recognizer developers can use QObjects property system to store custom data inside QGesture without need to subclass it. Some functions were renamed to show their purpose more clear.
* | Merge of the maemo-gestures branch onto qt/4.5.0Denis Dzyubenko2009-05-111-0/+1
| | | | | | | | | | This is a squashed merge of all of the changes in the maemo-gestures branch on-top of the qt/4.5.0 branch.
* | Support sending touch events (with multiple touch points) to multiple ↵Bradley T. Hughes2009-05-041-5/+6
| | | | | | | | | | | | | | widgets simultaneously This is a first attempt, and it works, but it will need to be cleaned up to remove as much state from QWidgetPrivate as possible.
* | Use the HWND from the Windows MSG to find which widget to send events toBradley T. Hughes2009-04-301-2/+2
| | | | | | | | the logic for determining the event type has refactored as well
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Bradley T. Hughes2009-04-291-2/+2
|\ \ | |/ | | | | windows-7-multitouch
| * introduce Q_WS_WINCEMaurice Kalinowski2009-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | Task-number: 246130 Reviewed-by: joerg Introduce Q_WS_WINCE for Windows CE only windowing parts. So far we decided to stick with Q_WS_WIN32, but having a separate define makes the code more readable. In addition Q_WS_WINCE_WM is available for Windows Mobile only parts, where we do not check for the OS on runtime.
* | Don't store activeTouchPoints in QApplicationPrivateBradley T. Hughes2009-04-291-1/+1
| | | | | | | | it's only needed and updated during delivery, so the extra copy isn't necessary
* | Use a widget attribute to keep track of whether or not TouchBegin has been ↵Bradley T. Hughes2009-04-291-1/+0
| | | | | | | | accepted
* | Fix tests/manual/qtouchevent by choking mouse events even for ignored ↵Bradley T. Hughes2009-04-231-0/+1
| | | | | | | | | | | | TouchUpdate and TouchEnd events. The behavior we want is that no mouse events are sent if the widget accepts the TouchBegin.
* | remove QApplicationPrivate::sendTouchEventBradley T. Hughes2009-03-261-2/+0
| |
* | initial implementation of multitouch support on Windows 7Bradley T. Hughes2009-03-251-3/+24
| | | | | | | | | | | | | | WM_TOUCH* messages are translated to QTouchEvents and sent to the appropriate widget. we set the qt_tabletChokeMouse variable according to the result of the event processing to make sure that mouse events are sent when touch events are not handled.
* | implement event propagation for touch eventsBradley T. Hughes2009-03-251-0/+3
| | | | | | | | | | | | | | | | behavior is similar to that of QGraphicsScene mouse events: the first touch event (the TouchBegin) is propagated to all parents. if a widget accepts the event, it will receive all other touch events (the TouchUpdate and TouchEnd events). If no widget accepts the TouchBegin, then we will fallback to normal mouse events (TBD).
* | remove code duplication for setting the focus widget based on tBradley T. Hughes2009-03-251-0/+4
|/ | | | | | | | he focus policy refactor duplicated code in the mouse and wheel event handlers that sets the focus widget based on the widget's (or its ancestors) focus policy
* Long live Qt!Lars Knoll2009-03-231-0/+438