1. 10 May, 2016 - 1 commit
  2. 24 Mar, 2016 - 1 commit
  3. 18 Mar, 2016 - 1 commit
  4. 24 Feb, 2016 - 2 commits
    • Błażej Szczygieł's avatar
      QtWidgets: Always deliver the wheel event to submenus · 544bbcbc
      Błażej Szczygieł authored
      
      When mouse events are delivered using XInput2 then the wheel event is
      missing on submenus, because XInput2 delivers the wheel event only to
      the root menu.
      
      Task-number: QTBUG-50996
      Change-Id: I757c0b5e3aea4606d2e45dfc8180c263e02167ca
      Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@theqtcompany.com>
      544bbcbc
    • Błażej Szczygieł's avatar
      QtWidgets: Proper delivery of enter/leave event to context menus · 57ecd5ae
      Błażej Szczygieł authored
      
      First-level context menu grabs the mouse, so all mouse events are
      delivered to it. This menu passes the mouse events to submenus. Any
      platform delivers mouse enter/leave event differently when window is
      grabbed. This patch unifies event delivery to context menus - it can
      block some unwanted events and it emulates fake events if necessary.
      
      This patch can reduce duplicated events and can provide proper enter
      or leave event to additional widgets in the context menu. It can also
      prevent submenu from unwanted close on Windows and X11.
      
      Added autotest.
      
      Task-number: QTBUG-45565
      Task-number: QTBUG-45893
      Task-number: QTBUG-47515
      Change-Id: I7dd476d0be23afa34e947e54aef235012d173dcf
      Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@theqtcompany.com>
      57ecd5ae
  5. 05 Feb, 2016 - 1 commit
  6. 21 Dec, 2015 - 1 commit
  7. 28 Nov, 2015 - 1 commit
  8. 23 Sep, 2015 - 1 commit
  9. 22 Sep, 2015 - 1 commit
  10. 20 Aug, 2015 - 1 commit
  11. 30 Jul, 2015 - 1 commit
    • Morten Johan Sørvig's avatar
      Introduce cross platform high-dpi scaling · a705b4ec
      Morten Johan Sørvig authored
      
      Add a coordinate scaling layer to QtGui, which supports 'devicePixelRatio'
      type high-dpi on all platforms, in production and also for
      development and testing purposes.
      
      High-DPI scaling is opt-in, by setting environment variables:
          QT_SCALE_FACTOR - sets a global scale factor
          QT_AUTO_SCREEN_SCALE_FACTOR - sets per-screen scale factors,
              where the scale factors are provided by the platform plugin.
      
      This QtGui scaling can be used instead of or in addition to scaling
      done by the window system. This distinction is not visible to
      applications [when they use Qt API], which will see a change in
      the value returned by the devicePixelRatio() accessors as usual.
      
      Introduce a new (private to Qt) coordinate system: native pixels.
      The coordinate system stack now looks like:
          device-independent pixels (app, upper parts of Qt)
          native pixels (lower parts of Qt Gui, platform plugins)
          device pixels (backing stores and OpenGL)
      
      Add private QHighDpi namespace with scaling functions that convert
      between device-independent pixels and native pixels:
          T toNativePixels(T, QWindow *);
          T fromNativePixels(T, QWindow *);
      
      Add scaling calls the QWindow (and friends) cross-platform implementation,
      around the calls to QPlatformWindow functions. QPlatformWindow now uses
      native coordinates - platform code remains largely unchanged since native
      coordinates are window system coordinates.
      
      QWindow now uses (possibly) scaled coordinates. This means that
      platform plugins no longer can rely on QWindow::geometry() and
      related functions. QPlatformWindow::windowGeometry() and other
      convenience functions have been added for use when the platform
      plugin needs to convert scaled geometry to native geometry.
      
      Add Qt::AA_NoHighDpiScaling, which can be use to disable any
      scaling in QtGui, effectively ignoring the environment variables.
      (Note that this does not disable any scaling done by the window
      system.)
      
      Contributions from Friedemann and Paul.
      
      Task-number: QTBUG-46615
      Change-Id: I673bbd69c130e73b13cce83be11bfb28f580bf60
      Reviewed-by: default avatarLars Knoll <lars.knoll@theqtcompany.com>
      a705b4ec
  12. 27 Jul, 2015 - 1 commit
  13. 25 May, 2015 - 1 commit
  14. 12 May, 2015 - 1 commit
  15. 26 Mar, 2015 - 1 commit
    • Giuseppe D'Angelo's avatar
      QWidgetWindow: use sendEvent to forward events to the wrapped QWidget · 51af196b
      Giuseppe D'Angelo authored
      
      The fallback code for unhandled event types in QWidgetWindow::event
      directly called event() on the underlying QWidget (i.e. m_widget->event(e)).
      
      The problem with that approach is that it does not activate any
      event filters that can have been installed on the top level widget.
      Instead, let's use sendEvent to forward the event to the widget.
      
      An extra modification becomes necessary:
      the events received when creating/showing/etc. a widget change,
      hence the corresponding test needs to be tuned. On the other hand,
      apparently this fixes a long time XFAIL in that test.
      
      Task-number: QTBUG-42281
      Task-number: QTBUG-26424
      Change-Id: I237bbbc301e3e9e10f071589629c71343a600ef9
      Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
      51af196b
  16. 25 Mar, 2015 - 1 commit
  17. 12 Mar, 2015 - 1 commit
  18. 25 Feb, 2015 - 1 commit
  19. 24 Feb, 2015 - 1 commit
  20. 16 Feb, 2015 - 1 commit
  21. 11 Feb, 2015 - 1 commit
    • Jani Heikkinen's avatar
      Update copyright headers · 83a5694d
      Jani Heikkinen authored
      
      Qt copyrights are now in The Qt Company, so we could update the source
      code headers accordingly. In the same go we should also fix the links to
      point to qt.io.
      
      Outdated header.LGPL removed (use header.LGPL21 instead)
      
      Old header.LGPL3 renamed to header.LGPL3-COMM to match actual licensing
      combination. New header.LGPL-COMM taken in the use file which were
      using old header.LGPL3 (src/plugins/platforms/android/extract.cpp)
      
      Added new header.LGPL3 containing Commercial + LGPLv3 + GPLv2 license
      combination
      
      Change-Id: I6f49b819a8a20cc4f88b794a8f6726d975e8ffbe
      Reviewed-by: default avatarMatti Paaso <matti.paaso@theqtcompany.com>
      83a5694d
  22. 07 Feb, 2015 - 1 commit
    • Shawn Rutledge's avatar
      Handle gracefully the removal and re-attachment of all QScreens · f4b8697c
      Shawn Rutledge authored
      
      Don't crash; restore windows when all screens are removed and re-added.
      xcb: on configure notify, check for screen change: it may be that a
      window belonging to a screen which was removed has now gotten mapped
      to the new screen.  On screen change, send a synthetic expose event,
      because the real expose events already happened.
      
      Task-number: QTBUG-38326
      Task-number: QTBUG-32973
      Task-number: QTBUG-42985
      Change-Id: If334f55c248468ad3c95e7066bb14eca377d2050
      Reviewed-by: default avatarJørgen Lind <jorgen.lind@theqtcompany.com>
      f4b8697c
  23. 13 Jan, 2015 - 1 commit
  24. 10 Dec, 2014 - 1 commit
  25. 03 Dec, 2014 - 1 commit
  26. 27 Nov, 2014 - 1 commit
  27. 07 Nov, 2014 - 1 commit
    • Jørgen Lind's avatar
      Ensure that a leave event is sent to a popup that is being closed · 190bfbae
      Jørgen Lind authored
      
      If a context menu contains a menu item which will open a dialog, the
      context menu will never get the leave event, which might leave the menu
      in an invalid state.
      
      Synthetic leave events are sent to windows, but not to popups that are
      blocked by modal dialogs. Hovever, a popup is removed from the popup
      stack in QApplication before it receives the leave event. Therefore
      always give popups events, even when they are not visible.
      
      Task-number: QTBUG-38021
      Change-Id: I63f6febed44f1e7c8f29e7a09af07f32b4ddbc82
      Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
      190bfbae
  28. 04 Nov, 2014 - 1 commit
    • Jørgen Lind's avatar
      Fix too many resizes and move events for native widgets · dce13e4b
      Jørgen Lind authored
      
      When the QWidgetWindow receives a resize or move event, it should check
      with the widget if its crect already has this geometry. if not then send
      the resize or move event
      
      Ideally events should be sent whenever the QWidgetWindow receives them.
      QTBUG-42383 is created for this problem
      
      Task-number: QTBUG-29937
      Task-number: QTBUG-38768
      Task-number: QTBUG-30744
      Change-Id: I1e9a5d25de29a98885edece927ba14d7a763eb01
      Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
      dce13e4b
  29. 28 Oct, 2014 - 1 commit
  30. 20 Oct, 2014 - 1 commit
  31. 24 Sep, 2014 - 1 commit
  32. 10 Sep, 2014 - 1 commit
  33. 28 Jul, 2014 - 1 commit
    • Shawn Rutledge's avatar
      add buttons to QTabletEvent · 6ad66140
      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: default avatarFrederik Gladhorn <frederik.gladhorn@digia.com>
      6ad66140
  34. 13 Jun, 2014 - 1 commit
  35. 06 Jun, 2014 - 1 commit
  36. 19 May, 2014 - 1 commit
  37. 18 May, 2014 - 1 commit
  38. 06 May, 2014 - 1 commit
  39. 04 Apr, 2014 - 1 commit
    • Shawn Rutledge's avatar
      Don't assume qt_tablet_target widget exists from one event to the next · ba2ea6da
      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: default avatarLaszlo Agocs <laszlo.agocs@digia.com>
      ba2ea6da