summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_win.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'qt/master-stable'Jason Barron2009-08-061-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.exe doc/src/classes/qnamespace.qdoc examples/examples.pro src/corelib/kernel/qcoreevent.cpp src/corelib/kernel/qobject.cpp src/gui/kernel/qapplication.cpp src/gui/kernel/qstandardgestures.h src/gui/kernel/qwidget.cpp
| * Moved the native window gesture handling code to the right place.Denis Dzyubenko2009-08-041-1/+1
| |
| * Renamed internal WinGesture event to NativeGesture.Denis Dzyubenko2009-08-041-5/+5
| | | | | | | | | | | | | | It will also be used on Mac, so it doesn't make sense to keep it windows specific. Reviewed-by: trustme
* | Merge commit 'origin/master'Jason Barron2009-08-041-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/global/qglobal.h src/corelib/kernel/qmetatype.cpp src/corelib/kernel/qobject.cpp src/corelib/thread/qthread_unix.cpp src/gui/graphicsview/qgraphicssceneevent.h src/gui/itemviews/qheaderview.h src/gui/kernel/qapplication_qws.cpp src/gui/kernel/qgesture.h src/gui/kernel/qgesturerecognizer.h src/gui/painting/qpaintengine_raster.cpp src/network/access/qhttpnetworkreply.cpp src/network/access/qnetworkcookie.h src/network/socket/qnativesocketengine_unix.cpp
| * Squashed commit of the topic/exceptions branch.Harald Fernengel2009-08-031-1/+1
| | | | | | | | | | Contains some smaller fixes and renaming of macros. Looks big, but isn't scary at all ;)
* | Remove unused gesture related defines and structuresBradley T. Hughes2009-07-211-8/+8
| | | | | | | | | | We don't use all of them. I also changed the typedefs for the touch related functions to follow the same naming convention.
* | Fix MinGW (g++ 3.4.5) compilation.Friedemann Kleint2009-07-171-3/+4
| | | | | | | | | | ...to be reverted once it is deprecated. Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com>
* | fix warnings with mingwThierry Bastian2009-07-151-0/+2
| |
* | Fix warnings for mingwThierry Bastian2009-07-151-19/+23
| | | | | | | | | | did a small refactor and used QStyleHelper::uniqueName in plastique and windows styles
* | Build fix for mingwThierry Bastian2009-07-141-9/+8
| | | | | | | | | | we should include qt_windows.h and not windows.h because we have to define WINVER to 0x500.
* | Tablet events get delivered to the widget where the tablet down happend.Luc Devallonne2009-07-101-2/+27
| | | | | | | | | | | | | | | | This is basically the Windows version of the bug fixed in change 82e825ed841bce324a6892fcbace03f9936d4f4f Merge-request: 855 Reviewed-by: Norwegian Rock Cat <qt-info@nokia.com>
* | Support Tablet coordinate on Windows with non-zero physical originLuc Devallonne2009-07-101-9/+11
| | | | | | | | | | | | | | | | | | | | 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>
* | Getting rid of compiler warnings on windowsThierry Bastian2009-07-071-3/+1
| |
* | Refactored gesture apiDenis Dzyubenko2009-07-021-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | src/gui: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT supportminiak2009-07-011-294/+115
|/ | | | | | | | | | | | | Also - Make winPeekMessage() & winPostMessage() obsolete - FlashWindowEx, IsValidLanguageGroup functions no longer resolved dynamically (available on >= Windows 2000) - LoadIcon/LoadCursor -> LoadImage w/LR_SHARED for system icons/cursors - qsystemtrayicon_win: use Shell_NotifyIconGetRect if available (Windows 7) Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-261-3/+16
|\
| * Improved support for DPI on Mac and Vista/7Jens Bache-Wiig2009-06-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This significantly improves the support for higher DPI-values on these platforms by ensuring that common pixelmetrics are scaled accordingly. In addition we mark all Qt apps as DPI-aware on Windows 7 by calling SetProcessDPIAware. We also changed the way we draw pixmaps on the mac paintengine when using dpi scaling > 1 to ensure smooth pixmap scaling. Reviewed-by: nrc Task-id: 242417
| * Cannot move fixed size windows using titlebar (only on top edge)Prasanth Ullattil2009-06-251-3/+7
| | | | | | | | | | | | | | WM_NCHITTEST has to return the location type based on the position, instead of returning just true or false. Reviewed-by: Marius Storm-Olsen
* | Add QTouchEvent::DeviceType and deviceType()Bradley T. Hughes2009-06-241-1/+1
| | | | | | | | | | | | | | | | | | 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).
* | Compile on WindowsBradley T. Hughes2009-06-231-2/+2
| |
* | Add functions to report normalized positions in QTouchEvent::TouchPointBradley T. Hughes2009-06-231-0/+4
| | | | | | | | | | | | | | | | | | This introduces normalizedPos(), startNormalizedPos(), and lastNormalizedPos() in QTouchEvent::TouchPoint, and must be set by the implementation before being fed into Qt. We are assuming and hoping that these functions will make it easier to implement certain types of gestures (especially on a touchpad).
* | Handle the case where TOUCHINPUT id numbers are not reusedBradley T. Hughes2009-06-191-0/+8
| | | | | | | | | | | | As documented in the Windows 7 SDK RC, the id's may not be reused. We don't want the touchInputIDToTouchPointID hash to grow indefinitely, so clear it each time we detect that all touch points have been released.
* | Change behavior of how touch and mouse events work togetherBradley T. Hughes2009-06-181-14/+12
| | | | | | | | | | | | | | | | 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
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-121-42/+42
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem_p.h
| * | Removed qApp and replaced with QApplication:: for static member callsThierry Bastian2009-06-111-37/+37
| | |
| * | remove q->layout() and q->parentWidget() code where unnecessaryThierry Bastian2009-06-111-5/+5
| | |
* | | remove duplicated code and API (merge QTouchEvent and QGraphicsSceneTouchEvent)Bradley T. Hughes2009-06-111-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | the API for these 2 classes is identical, the implementation is almost identical, they share the same data structures, so bite the bullet and merge them. this means we go back to using screenPos() instead of globalPos() again
* | | another API review round: change Q*TouchEvent size() functions to return ↵Bradley T. Hughes2009-06-111-7/+8
| | | | | | | | | | | | | | | | | | rects instead these are more useful, as already shown in the fingerpaint example
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-081-2/+20
|\ \ \ | |/ /
| * | Fixes anti-aliased text rendering on smartphones (Windows Mobile)Thomas Hartmann2009-06-051-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check for cleartype in qt_win_read_cleartype_settings() was not correct for Windows Mobile For anti-aliased text rendering we also have to use another pixel format for the native image. Task-number: 249642 Reviewed-by: mauricek
| * | Fix for Qt issue #218037 - Add support for the WM_MOUSEHWHEEL message on Windowsminiak2009-06-051-2/+12
| | | | | | | | | | | | | | | Merge-request: 384 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | | Fix raw translation on WindowsBradley T. Hughes2009-06-081-5/+3
| | | | | | | | | | | | We don't keep the state from the previous events anymore, so the 'down' variable is useless (and actually caused problems).
* | | Compile on Windows againBradley T. Hughes2009-06-081-35/+16
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-051-1/+5
|\ \ \ | |/ /
| * | force activation of minimized windows on Windows mobileJoerg Bornemann2009-06-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When pressing the <- key on a Windows mobile device, the window gets a minimized event (no other soft keys behave like that). Restoring the window via the app menu isn't possible, because the window get a WM_ACTIVATE but its internal state is still minimized. It makes sense to unminimize activated apps on Windows mobile. Task-number: 254673 Reviewed-by: thartman
* | | Add support for touch point contact areaBradley T. Hughes2009-06-031-0/+7
| | | | | | | | | | | | Add QTouchEvent::TouchPoint::area() and implement support for it on Windows
* | | Update to the latest Windows 7 touch APIBradley T. Hughes2009-06-031-8/+4
| | | | | | | | | | | | The Windows 7 SDK RC only has a single message, WM_TOUCH
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-05-291-16/+19
|\ \ \ | |/ /
| * | improved string operations all over the placeThierry Bastian2009-05-281-2/+2
| | | | | | | | | | | | | | | used character operations whenever possible better usage of QLatin1String
| * | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-271-13/+16
| |\ \ | | |/ | | | | | | | | | Conflicts: tests/auto/qtreeview/tst_qtreeview.cpp
| | * BT: fix systray balloon crash bug on Windows CEJoerg Bornemann2009-05-251-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Its the context menu handling code... again. Problem is, that during execution of translateMouseEvent, the widget is closed and a modal message box is shown. After that, there's no widget at globalPos and thus, alienWidget is null. This patch just adds a null check for alienWidget. Task-number: 254425 Reviewed-by: mauricek BT: yes
| * | some cleanups on private exported symbolsThierry Bastian2009-05-261-1/+1
| | |
* | | Call the multitouch initialize and cleanup functions from cross-platform codeBradley T. Hughes2009-05-291-2/+0
| | |
* | | Refactor the touch event dispatching code in preparation for allowing ↵Bradley T. Hughes2009-05-281-130/+15
| | | | | | | | | | | | | | | | | | | | | | | | 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-48/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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-25/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Remove friends from QTouchEvent and QTouchEvent::TouchPointBradley T. Hughes2009-05-271-22/+21
| | | | | | | | | | | | | | | | | | We'll use the \internal functions to modify it instead. This should make it easier for people to implement support for touch events outside of Qt itself (still need to somehow expose the logic for dispatching the touch points to the correct widgets though).