- 20 Oct, 2014 - 1 commit
-
-
Tor Arne Vestbø authored
The focusObject of a QWidgetWindow is the focusWidget() of the top level widget, so when clearing the focus object of the window we should clear focus of the same focusWidget, not the application-wide focus widget, which may live in another window. Change-Id: Ib9162418865c225e23aac7987e119b3b651983eb Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@digia.com>
-
- 24 Sep, 2014 - 1 commit
-
-
Matti Paaso authored
- Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 - Removed LICENSE.GPL Change-Id: Iec3406e3eb3f133be549092015cefe33d259a3f2 Reviewed-by:
Iikka Eklund <iikka.eklund@digia.com>
-
- 10 Sep, 2014 - 1 commit
-
-
Laszlo Agocs authored
Unlike ordinary widgets, the ones that have OpenGL framebuffers must know about screen changes because the device pixel ratio may be different on the new screen. Add an internal event, ScreenChangeInternal, as the counterpart to WindowChangeInternal. Change-Id: I5e55999838e4c0284e7d9832299f7cc6b541ee3f Reviewed-by:
Paul Olav Tvete <paul.tvete@digia.com>
-
- 28 Jul, 2014 - 1 commit
-
-
Shawn Rutledge authored
Until now, it has been necessary for tablet-oriented applications which care about multi-button styli to reject each tablet event and wait for the mouse event in order to know which buttons are pressed. This patch adds the new API and also the X11/xcb implementation. [ChangeLog][QtCore][Tablet support] Added buttons to QTabletEvent Task-number: QTBUG-39458 Change-Id: If2c9ec1ceacc1700a82686c5fc6f568f9111055a Reviewed-by:
Frederik Gladhorn <frederik.gladhorn@digia.com>
-
- 13 Jun, 2014 - 1 commit
-
-
Friedemann Kleint authored
This reverts commit a1c51983 . The idea of detecting non-spontaneous events by comparing against the widget's crect has problems when sequences of programmatic resizes occur. In addition, QWindowSystemInterface's queueing of events is problematic for this. Task-number: QTBUG-39611 Task-number: QTBUG-32590 Change-Id: I4674d8d5d5d432d938f7226b5790543335665c1f Reviewed-by:
Andy Shaw <andy.shaw@digia.com>
-
- 06 Jun, 2014 - 1 commit
-
-
Friedemann Kleint authored
QWidget::resize() or QWidget::move() set the new size/position values and send events. The spontaneous events generated by the platform should be ignored in that case. Task-number: QTBUG-30744 Task-number: QTBUG-38768 Task-number: QTBUG-32590 Change-Id: I9c0ae38842ed76a8a88ca64fdc9bbe106b2766b7 Reviewed-by:
Andy Shaw <andy.shaw@digia.com>
-
- 19 May, 2014 - 1 commit
-
-
Tor Arne Vestbø authored
Change-Id: I24835b86194653e89c0bacefd22ddbff06b6e97b Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@digia.com>
-
- 18 May, 2014 - 1 commit
-
-
Friedemann Kleint authored
Introduce function to set the spontaneous flag to QCoreApplicationPrivate to solve a few cases. Change-Id: I7c1f1f3644defe00deea9cecb244ca258afd5b94 Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
- 06 May, 2014 - 1 commit
-
-
Friedemann Kleint authored
When replaying the mouse events synchronously, nested calls of QEventLoop::exec() may happen in conjunction with menus. Task-number: QTBUG-38550 Change-Id: I2b1dafdac59d1a080775af5f165d1e594ea58804 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 04 Apr, 2014 - 1 commit
-
-
Shawn Rutledge authored
In this scenario there is a widget with a button inside, and you click the button with the tablet. The target of the event is the button, but when you click it, the parent (or ancestor) is destroyed. Commit 2bac4926 took care of the case when the parent is a window, but it is not always a window which is being destroyed. So the approach of using a QPointer is better because it should take care of all the cases when the qt_tablet_target is destroyed during the course of a tablet event sequence. Task-number: QTBUG-36848 Task-number: QTBUG-38040 Change-Id: Ia0e861f2cb2fbc30234aa596f3a36ddd0835a9af Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 03 Apr, 2014 - 1 commit
-
-
Laszlo Agocs authored
Setting qt_button_down on DblClick is dubious and breaks popups like menus since they won't appear correctly on every click anymore when clicking on them rapidly several times. Task-number: QTBUG-37891 Change-Id: Ic6cbbbe8b42891d2f9fa2ff66aa42bb89230d896 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by:
Rick Stockton <rickstockton@reno-computerhelp.com> Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com>
-
- 14 Mar, 2014 - 1 commit
-
-
Morten Johan Sørvig authored
Add a screenChanged handler slot to QWidgetWindow, which calls markDirty() on the backing store with the BufferInvalid and UpdateNow flags set. Update CocoaBackingStore to create a new buffer on window devicePixelRatio change. Use the QCocoaWindow::devicePixelRatio() implementation instead of a duplicate implementation in the backing store. The plan is to replace this implementation with one based on QUpdateWindowRequestEvent for Qt 5.4 Change-Id: I8e521c53df4ac90815613e730fe821996334721f Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- 06 Mar, 2014 - 1 commit
-
-
Shawn Rutledge authored
In this scenario there is a widget with a QPushButton inside, and you click the pushbutton with the tablet. The target of the event is the pushbutton, but when you click it, the window is destroyed. The widgetwindow destructor cannot check the pushbutton's window() because it has already been destroyed. So it seems we have to store both widgets: the actual target and the parent widget which has the window. Task-number: QTBUG-36848 Change-Id: I37d8fb03743f3e501d695342edc42de104777b18 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 27 Feb, 2014 - 1 commit
-
-
Friedemann Kleint authored
Change-Id: I70dacc2f96552e08dd71d5cbd63fb4cf9916c11f Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 12 Feb, 2014 - 1 commit
-
-
Paul Olav Tvete authored
Enable child widgets (without a native window) that render to an FBO and are composed with the raster backingstore by the platform plugin. A preliminary version of QOpenGLWidget is included as private API. Change-Id: I8f984a4d7db285069ce3d6564707942c823d890d Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- 07 Feb, 2014 - 1 commit
-
-
Friedemann Kleint authored
QWidgetWindow stores the normal geometry obtained from the widget when transiting to other states. This does not work reliably on Windows, where this geometry is already that of the new state. Instead, introduce QPlatformWindow::normalGeometry(), add implementation for Windows and use that in QWidgetWindow. Task-number: QTBUG-21371 Change-Id: I3819ebaf55b4e7d2f7eef1affe6c20712ba45d7c Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com>
-
- 31 Jan, 2014 - 1 commit
-
-
Friedemann Kleint authored
Task-number: QTBUG-33635 Change-Id: I6d436bc4d47d1d6b063fc2cf27d67fe4684e7491 Reviewed-by:
Oliver Wolff <oliver.wolff@digia.com> Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com>
-
- 27 Jan, 2014 - 1 commit
-
-
Rick Stockton authored
QWidgetWIndow: In Qt4, when Qt created a MouseButtonDblClick event, Qt would consume the causing MouseButtonPress. It would send only the derived dblclick event to widget windows and their children. This change makes Qt5.3 and higher emulate Qt4 delivery of double click-related events to widget windows and their children. QML objects (e.g. mousearea) continue to receive the second MouseButtonPress. [ChangeLog][QtGui][QWidget] MouseButtonDblClick: Do not send the 2nd MouseButtonPress event to Widgets. Restore Qt4 behavior in sequence of mouse events delivered to widget windows and their children. Task-number: QTBUG-25831 Change-Id: Iff0f9c592bceacb2ca844d30f8180081e136a889 Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 10 Dec, 2013 - 1 commit
-
-
Friedemann Kleint authored
Introduce a hint to QPlatformTheme to control the behavior. Task-number: QTBUG-35231 Change-Id: Ia28e153a8dd3f1931321a222d8906ca87166ed62 Reviewed-by:
Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com>
-
- 21 Nov, 2013 - 1 commit
-
-
Tor Arne Vestbø authored
Qt::WA_Mapped maps (sic) to windowHandle()->isExposed(), and we set/update it in QWidgetWindow::handleExposeEvent(). Setting it directly in show_sys shortcuts QPA and assumes showing a window is synchronous on all platforms, resulting in trying to flush the widget backingstore when the window was not exposed yet (due to discardSyncRequest starting to return false). This reverts commit 829b1d13 . Change-Id: I0bd700d4939bc69ba184d8586435b68ec3dd72fb Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
- 20 Nov, 2013 - 2 commits
-
-
Friedemann Kleint authored
Task-number: QTBUG-33520 Change-Id: I51f9b4634be29fd32f4ad9cc8b5d3e10b19ea2f5 Reviewed-by:
Oliver Wolff <oliver.wolff@digia.com> Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
Andy Shaw authored
Whenever a window gets blocked, then the qt_button_down variable should be reset as it is not going to receive the release event for the mouse. This fixes problems with the mouse cursor not being updated when moving over widgets (such as QLineEdit) after a dialog is shown in response to a press event. Change-Id: Idfd072eaf36f51b816a0b2a0391cdc447d7a5d9d Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com>
-
- 31 Oct, 2013 - 1 commit
-
-
Richard Moe Gustavsen authored
On mobile platforms, a line edit should only have keyboard focus when the virtual keyboard is open. As it stands, the only way to clear focus when the user hides the keyboard, is to deactivate the whole window. This is a bit too much, since Qt still expects the window in front to be active/focused. What we need is a way to remove focus from the current focus object without disturbing the state of the window. QWindow has a virtual function 'focusObject' from before. We now add a virtual function 'clearFocusObject' to QWindowPrivate that can be overridden by QWidgetWindowPrivate and QQuickWindowPrivate. That way we can remove focus from current focus object when the virtual keyboard is closed from the platform plugins. Change-Id: Ica4ec76f8a69cd6107236a8000ff8bd742e988b5 Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
- 18 Oct, 2013 - 1 commit
-
-
Friedemann Kleint authored
Task-number: QTBUG-34007 Change-Id: If67563e5d9c4040256b58521773736e14db6fbaf Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 17 Oct, 2013 - 1 commit
-
-
Morten Johan Sørvig authored
Add QWindowSystemInterface::GestureEvent and QNativeGestureEvent to QtGui. These events are copies of Qt4's QNativeGestureEvent, where it was an implementation detail of QGestureManager. Add gesture message handlers to QNSView and bring back the Mac gesture recognizers for QGestureManager. Task-number: QTBUG-28126 Change-Id: I1304e09e776fa7c44d133d54ca8b895ca2f544c5 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
- 08 Aug, 2013 - 1 commit
-
-
J-P Nurmi authored
Some platforms (read: OS X) send wheel events without delta to indicate that scrolling is about to start or has ended. Currently, Qt simply ignores wheel events that have no delta. This change introduces a new QWheelEvent attribute that specifies the phase, and makes it possible to receive the special wheel events in started/ended phases. These events are required for implementing correctly behaving transient scrollbars. Change-Id: Ib8ce0d9ce9be63b2ad60aa7b0aaa1f12ef6cad09 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by:
Shawn Rutledge <shawn.rutledge@digia.com>
-
- 03 Aug, 2013 - 1 commit
-
-
Daiwei Li authored
The QCloseEvent's accepted state should not be inverted for the QWindowSystemInterfacePrivate::CloseEvent. To make Widgets work with this change, pass whether the close was accepted from close_helper to the QCloseEvent generated by QGuiApplication. Task-number: QTBUG-28965 Change-Id: If384b0355776b93df02dff2ab78b5647903200e7 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by:
Josh Faust <jfaust@suitabletech.com>
-
- 24 Jun, 2013 - 1 commit
-
-
Friedemann Kleint authored
Do not rely on release events. Task-number: QTBUG-31333 Change-Id: I09a056fed8892715c04ca78a42ae191e5a9a3b42 Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by:
Shawn Rutledge <shawn.rutledge@digia.com>
-
- 13 May, 2013 - 1 commit
-
-
Friedemann Kleint authored
Fix the inline editor of the QMenuBar in Qt Designer not working due to the key events being sent to the QMenu which is open at that time. Task-number: QTBUG-31059 Change-Id: Ic96bc119d0d2566d8f8d6ee62858445a70a447b7 Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com>
-
- 07 May, 2013 - 1 commit
-
-
Richard Moe Gustavsen authored
QWidgetWindow will always redirect mouse events to the active popup (if any). The same logic is not implemented for touch events, which means that touch events are always delivered to the widget under the finger. It is therefore possible to interact with widgets that are modally shaddowed by the popup. It is also not possible to close popups without touching them directly. This patch will ignore touch events when a popup is active, and as such, force a synthesised mouse event to be sent instead. Implementing proper touch support also for popups is out of scope for widgets. Change-Id: I023c09c3e1fd4e5495df990c11419c69ecafb8f9 Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by:
Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com>
-
- 12 Apr, 2013 - 1 commit
-
-
Friedemann Kleint authored
Task-number: QTBUG-29946 Change-Id: Ia9ac54251f52b6ae4b3d667e49b96441def72a57 Reviewed-by:
Shawn Rutledge <shawn.rutledge@digia.com>
-
- 19 Mar, 2013 - 1 commit
-
-
Jake Petroules authored
Change-Id: I0ca49e3e1f9f603f0b0f7f3553e854b871efe303 Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
- 06 Mar, 2013 - 1 commit
-
-
Alberto Mardegan authored
Add a static QWindow::fromWinId(WId id) constructor which can be used to create a QWindow object representing windows created by other processes. Then, QWindow::setParent() can be used to embed a window into a foreign window socket and QWindow::setTransientParent() to stick the current window on top of a foreign window. The changes in the QtWidgets module ensure that the focus chain (TAB navigation) correctly works when a QtWidgets-based window is embedded into another application. As far as the platform implementation is concerned, this commit only implements the embedding functionality in the XCB plugin. So, this is roughly equivalent to the Qt4 QX11EmbedWidget functionality. Change-Id: Iff8f7b9ee974d33fb30f36056f7838b433a413c7 Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
- 20 Feb, 2013 - 1 commit
-
-
jian liang authored
Activate the window of the widget under mouse pointer before replay mouse press event. Change-Id: I9e699374accf108aa49b2a3c73d5e76631100dfd Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
- 19 Feb, 2013 - 1 commit
-
-
Gunnar Sletta authored
Change-Id: If4d596195624011142bff6853849a23064e478df Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com> (cherry picked from commit fc663b5f)
-
- 12 Feb, 2013 - 1 commit
-
-
Jian Liang authored
If a popup widget(e.g. a popup menu) has been closed due to a mouse press event, the mouse press event will be consumed by the popup widget and the widget under the mouse pointer can't receive the event. This will lead to confusing behavior such as a push button under the mouse pointer is not been push down. This patch replay the mouse press event if a popup widget has been closed. Change-Id: Id493583dfea9e64ab2964e28d559122c43bbc2a6 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com>
-
- 24 Jan, 2013 - 1 commit
-
-
Gunnar Sletta authored
Change-Id: If4d596195624011142bff6853849a23064e478df Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com>
-
- 18 Jan, 2013 - 1 commit
-
-
Sergio Ahumada authored
Change-Id: Ic804938fc352291d011800d21e549c10acac66fb Reviewed-by:
Lars Knoll <lars.knoll@digia.com>
-
- 11 Jan, 2013 - 1 commit
-
-
Shawn Rutledge authored
Only if minimized does QWidgetWindow need to remember the previous state. Maybe it's OK to restore from fullscreen to maximized though. Task-number: QTBUG-29030 Change-Id: I1e2724c8811366c9536a3e372ce281e8d473a4ac Reviewed-by:
J-P Nurmi <jpnurmi@digia.com> Reviewed-by:
Samuel Rødal <samuel.rodal@digia.com>
-
- 26 Nov, 2012 - 1 commit
-
-
Friedemann Kleint authored
Task-number: QTBUG-28070 Change-Id: I6f55a2dd906ee896071137a5d47fb97c9a571b5f Reviewed-by:
Oliver Wolff <oliver.wolff@digia.com> Reviewed-by:
Miikka Heikkinen <miikka.heikkinen@digia.com>
-