summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Make GestureCancelPolicy work for graphicsviewThomas Zander2009-10-305-22/+109
| | | | Reviewed-By: Denis
* Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-platform-team into 4.6Bradley T. Hughes2009-10-3043-397/+1344
|\
| * Fix tab widget painting in QGtkStyle with reverseJens Bache-Wiig2009-10-086-28/+166
| | | | | | | | | | | | | | | | This also adds QStyleOptionTabWidgetFrameV2 so that we do not have to do ugly hacks in the style to obtain it. Task-number: QTBUG-5187 Reviewed-by: ogoffart
| * Tabs with corner widgets are drawn incorrectly in document mode on Mac.Prasanth Ullattil2009-10-292-7/+7
| | | | | | | | | | | | | | | | | | | | While drawing the tabbar frame, mac style needs the QTabBar pointer to calculate the correct size. Since the QTabWidget also uses the PE_FrameTabBarBase to draw background of the corner widgets, the mac style has to use position passed with the style option. This only works with horizontal tabs. Reviewed-by: Jens Bache-Wiig
| * Ensure that button returns 0 for mouse move eventsDean Dettman2009-10-291-4/+3
| | | | | | | | | | | | This was a platform regression for the cocoa platform Reviewed-by: Prasanth
| * Fix a combobox autotest on VistaJens Bache-Wiig2009-10-071-2/+3
| | | | | | | | | | | | | | | | | | The subcontrol rect offset was correctly reporting not to work on Vista style. The problem was that we were getting the size of the arrow by subtracting the xoffset. But this would mean that the Reviewed-by: ogoffart
| * Fix split tool button drawing on Vista when not in a tool barJens Bache-Wiig2009-10-071-10/+36
| | | | | | | | | | | | | | | | | | | | | | When a tool button is not in a tool bar on XP and Vista it will get a slightly different appearance from normal tool buttons. I resolved this by drawing a normal tool button with a divider line on top if the autoraise property is not set on the button. (which is by default enabled only for buttons in a tool bar). Task-number: QTBUG-5061 Reviewed-by: prasanth
| * Wrong font used when moving a tab in document mode.Prasanth Ullattil2009-10-281-0/+1
| | | | | | | | | | | | | | | | Dragging is handled by a seperate window in document mode. The currently selected tabbar item is drawn to a pixmap for this purpose. That paintdevice was not initialized correctly. (e.g. font) Reviewed-by: Trond
| * Replaced QMap with QHash where possible in the gesture manager implementation.Denis Dzyubenko2009-10-282-13/+13
| | | | | | | | | | | | There is no reason to use QMap when the key is a pointer. Reviewed-by: Thomas Zander
| * Tiny doc change by David Boddie.Denis Dzyubenko2009-10-281-3/+3
| | | | | | | | Reviewed-by: David Boddie
| * Delete all gesture objects and recognizers when gesture manager is deleted.Denis Dzyubenko2009-10-281-0/+5
| | | | | | | | | | | | | | When application closes and we haven't deleted the unregistered gestures and gesture recognizer, we should delete them. Reviewed-by: Thomas Zander
| * Fixed the gesture event filtering through multiple gesture recognizers.Denis Dzyubenko2009-10-282-25/+29
| | | | | | | | | | | | | | | | | | When there are several gesture recognizers registered for the same gesture type, we need to know which recognizer we need to get a state object for since those QGesture objects are tied to the recognizer that created them. Reviewed-by: Thomas Zander
| * Removed obsolete private field from the QGesture and fixed the doc.Denis Dzyubenko2009-10-283-11/+7
| | | | | | | | Reviewed-by: Thomas Zander
| * QLocale: AM/PM symbol support for symbian platformdka2009-10-281-1/+3
| | | | | | | | Reviewed-by: Denis Dzyubenko
| * Mark the QGestureEvent::setWidget as internalThomas Zander2009-10-281-0/+2
| | | | | | | | | | The widget() getter is still publicly documented, follow the lead of other events to make the setter internal.
| * Make the un/registerGestureRecognizer methods staticThomas Zander2009-10-281-2/+2
| | | | | | | | | | As QApplication is a singleton this makes usage of these easier and also in line with many other methods on the class.
| * Rename private member variables to begin with m_Thomas Zander2009-10-282-67/+66
| | | | | | | | Reviewed-By: TrustMe
| * Drag and drop of plain text doesnot work on Mac.Prasanth Ullattil2009-10-283-8/+15
| | | | | | | | | | | | | | | | | | While querying for the text in the pasteboard, it was looking in the wrong place. The helper function qt_mac_get_pasteboardString() always searched in generalPasteboard instead of the pasteboard referred by the QMacPasteboard. Reviewed-by: MortenS
| * Introduce QGesture::GestureCancelPolicy, a way to auto-cancel gesturesThomas Zander2009-10-285-7/+133
| | | | | | | | | | | | | | | | | | On accepting one gesture Qt can automatically cancel other gestures that belong to other targets. The policy is normally set to not cancel any other gestures and can be set to cancel all active gestures in the context. For example for all child widgets. Reviewed-By: Denis Dzyubenko
| * Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-platform-team into ↵Bradley T. Hughes2009-10-2823-140/+797
| |\ | | | | | | | | | 4.6-WM_NULL-driven
| | * Emit workAreaResized() in X11 when it changesGustavo Pichorim Boiko2009-10-272-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | Emit the QDesktopWidget::workAreaResized() signal when the _NET_WORKAREA property of the root window changes. Merge-request: 1111 Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
| | * Fill gap of X.org/XFree multimedia/special/launcher keysHelio Chissini de Castro2009-10-274-96/+553
| | | | | | | | | | | | | | | | | | | | | Qt up to 4.5.x is missing whole setup of multimedia keys already defined by X Merge-request: 1742 Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
| | * Renamed QGestureRecognizer::ResultFlags to ResultFlagDenis Dzyubenko2009-10-272-3/+3
| | | | | | | | | | | | | | | | | | Decided after review by David Boddie. Reviewed-by: trustme
| | * Implemented QGestureRecognizer::ConsumeEventHintDenis Dzyubenko2009-10-271-2/+4
| | | | | | | | | | | | Reviewed-By: trustme
| | * Selected tab is drawn incorrectly on Snow Leopard.Prasanth Ullattil2009-10-271-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default height of tab bar is 22 pixels in Snow Leopard. We used to draw tabs taller than 21 pixels to a pixmap and stretch to the required size. The limit is now changed to 22 pixels (which is the most common use case). The stretched drawing is not perfect in Snow Leopard due to some changes in how HITheme draws tabs. Reviewed-by: Jens Bache-Wiig
| | * QTabbar is not behaving (painting) like native ones on Mac.Prasanth Ullattil2009-10-272-3/+25
| | | | | | | | | | | | | | | | | | | | | When a tab is clicked and mouse is moved outside that tab, it should be drawn as normal (not in sunken state). Reviewed-by: MortenS
| | * Removed the obsolete documentation reference from the QGesture.Denis Dzyubenko2009-10-261-6/+0
| | | | | | | | | | | | Reviewed-by: trustme
| | * Fix the debug output to be correct again after refactoringThomas Zander2009-10-261-7/+7
| | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * Fix memory leaks in the gesture managerThomas Zander2009-10-261-1/+2
| | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * Add QWidget::ungrabGestureThomas Zander2009-10-264-0/+35
| | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * Implement QApplication::unregisterGestureRecognizerThomas Zander2009-10-263-6/+49
| | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| | * Added convenience functions QGestureEvent::setAccepted with a gestureDenis Dzyubenko2009-10-262-5/+68
| | | | | | | | | | | | | | | | | | type argument. Reviewed-by: Thomas Zander
| | * Implemented QGestureEvent::activeGestures and canceledGestures.Denis Dzyubenko2009-10-261-2/+12
| | | | | | | | | | | | Reviewed-by: Thomas Zander
| | * Optimisation for filtering events for gestures in graphics view.Denis Dzyubenko2009-10-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | We shouldn't add several graphicsobject contexts for the same gesture type when looking for the gesture-enabled QGraphicsObject under a hotspot. Reviewed-by: Thomas Zander
| | * Merge branch '4.6' into 4.6-platformDenis Dzyubenko2009-10-261469-16242/+42575
| | |\
| | * | Remove internal widgets from QApplication::topLevelWidgets()Prasanth Ullattil2009-10-235-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have some internal hidden widgets which should not come up in the QApplication::topLevelWidgets() list. So the known ones are being removed from the QWidgetPrivate::allWidgets set. Task-number: QTBUG-739 Reviewed-by: Denis Dzyubenko Reviewed-by: Bradley T. Hughes
| * | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6-WM_NULL-drivenBradley T. Hughes2009-10-281416-12736/+56961
| |\ \ \
| * | | | Don't stop event processing at the second WM_QT_SENDPOSTEDEVENTSBradley T. Hughes2009-10-281-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | We should continue processing as much as we can, and report the WM_QT_SENDPOSTEDEVENTS at the end of processEvents().
| * | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6-WM_NULL-drivenBradley T. Hughes2009-10-221-0/+4
| |\ \ \ \
| * \ \ \ \ Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6-WM_NULL-drivenBradley T. Hughes2009-10-2286-3614/+6426
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6-WM_NULL-drivenBradley T. Hughes2009-10-221-75/+16
| |\ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | |
| * | | | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6-WM_NULL-drivenBradley T. Hughes2009-10-2236-140/+1504
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6-WM_NULL-drivenBradley T. Hughes2009-10-2136-30151/+54489
| |\ \ \ \ \ \ \
| * | | | | | | | Compile on Windows when QS_RAWINPUT is not defined.Bradley T. Hughes2009-10-211-1/+4
| | | | | | | | |
| * | | | | | | | Use GetStatusQueue() to look for timer and input messagesBradley T. Hughes2009-10-211-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function works more reliably than PeekMessage() with different flags.
| * | | | | | | | Remove workarounds for Win32 event dispatcher bugsBradley T. Hughes2009-10-205-32/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the startstop timer delay in QAbstractAnimation, and the inSizeMove workaround for paint events. Reviewed-by: Prasanth Ullattil
| * | | | | | | | Send posted events in response to WM_QT_SENDPOSTEDEVENTSBradley T. Hughes2009-10-201-84/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (which is just WM_USER+1) Delay the next WM_QT_SENDPOSTEDEVENTS iff there is a WM_TIMER or input event pending We also need to break out of processEvents() after seeing this message, to prevent livelocking in the prescence of fast timers. I also took the liberty of defining WM_QT_SOCKETNOTIFIER (WM_USER) at the same time (to give clear meaning to what WM_USER and WM_USER+1 are used for). Reviewed-by: Prasanth Ullattil
* | | | | | | | | Introduce internal StateType to avoid excessive qobject_castsKent Hansen2009-10-307-25/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The state machine algorithm frequently needs to know what type a state is, e.g. if it is atomic, final or a history state. We were using qobject_cast() to determine this, but that function is expensive. This commit introduces an internal StateType to be able to differentiate between the different types of state. This vastly improves performance. Reviewed-by: Eskil Abrahamsen Blomfeldt
* | | | | | | | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-10-3035-595/+1444
|\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Morten Johan Sørvig2009-10-3065-647/+22112
| |\ \ \ \ \ \ \ \ \