Skip to content
Commits on Dec 9, 2019
  1. Merge remote-tracking branch 'origin/5.15' into dev

    Qt Forward Merge Bot authored and laknoll committed Dec 9, 2019
    Change-Id: Ia24cc8b86def0d9d9c17d6775cc519e491b860b1
Commits on Dec 6, 2019
  1. Tidy nullptr usage

    Allan Sandfeld Jensen
    Allan Sandfeld Jensen committed Nov 22, 2019
    Move away from using 0 as pointer literal.
    
    Done using clang-tidy. This is not complete as
    run-clang-tidy can't handle all of qtbase in one go.
    
    Change-Id: I1076a21f32aac0dab078af6f175f7508145eece0
    Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
    Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Commits on Dec 5, 2019
  1. QGraphicsItem: Fix mouse tracking with modal panels

    paulolav committed Dec 2, 2019
    This fixes the case where a mouse tracking item is added to the
    scene while a modal panel is blocking. In order to optimize event
    delivery, mouse tracking is enabled for the view only when an
    item that needs it is added. This means that we cannot use
    itemAcceptsHoverEvents_helper(), since that returns whether the
    item _currently_ needs hover events, and we need to know whether it
    will need them in the future.
    
    [ChangeLog][QtWidgets][QGraphicsView] Fixed a bug where hover events
    would not be delivered if the item was added while blocked by a modal panel.
    
    Fixes: QTBUG-77233
    Change-Id: Ifc95869f2cc9c8c048330928ef8a13cd27cfd0f9
    Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
    Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Commits on Nov 25, 2019
  1. Merge remote-tracking branch 'origin/5.15' into dev

    Qt Forward Merge Bot Allan Sandfeld Jensen
    Qt Forward Merge Bot authored and Allan Sandfeld Jensen committed Nov 25, 2019
     Conflicts:
    	src/corelib/tools/qhash.h
    	src/gui/kernel/qevent.h
    	src/widgets/kernel/qshortcut.cpp
    	src/widgets/kernel/qshortcut.h
    
    Change-Id: If61c206ee43ad1d97f5b07f58ac93c4583ce5620
Commits on Nov 22, 2019
  1. Avoid initializing QFlags with 0 or nullptr in further cases

    FriedemannKleint committed Nov 22, 2019
    Amends qtbase/af2daafde72db02454d24b7d691aa6861525ab99.
    Where applicable, port over to member initialization, thus also
    fixing nullptr warnings.
    
    Change-Id: Iaaf2dbbbcf2952253390b8839fd15a1b17be32c0
    Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Commits on Nov 20, 2019
  1. Deprecate constructing QFlags from a pointer

    Allan Sandfeld Jensen
    Allan Sandfeld Jensen committed Nov 18, 2019
    This was used to support QFlags f = 0 initialization, but with 0 used
    as a pointer literal now considered bad form, it had been changed many
    places to QFlags f = nullptr, which is meaningless and confusing.
    
    Change-Id: I4bc592151c255dc5cab1a232615caecc520f02e8
    Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Commits on Nov 1, 2019
  1. QAction: Properly port to the new configure system

    FriedemannKleint committed Oct 18, 2019
    Use QT_REQUIRE_CONFIG in the headers of classes to be disabled.
    Add headers/source files in the .pro file depending on the configure
    feature in libraries and tests.
    Add the necessary exclusions and use QT_CONFIG.
    
    Only the widgets/kernel tests were made to compile since also
    the buttons depend on the action feature and it would become too
    involved.
    
    Task-number: QTBUG-69478
    Change-Id: Id5bf88bc108f2bbb14dce8625bfdcb7eb0deb8e3
    Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
    Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
  2. Merge remote-tracking branch 'origin/5.15' into dev

    Qt Forward Merge Bot
    Qt Forward Merge Bot committed Nov 1, 2019
    Change-Id: I68a6ed3184e62fa89c47c564bb01002c0918d0fd
Commits on Oct 31, 2019
  1. Extract QGuiAction(Group) from QAction(Group) into QtGui

    FriedemannKleint committed Jun 19, 2019
    Simply moving QAction to QtGui was not deemed possible since
    it operates on a set of controls of some kind. The approach to
    extract a base class was taken instead, named QGuiAction
    following the QGuiApplication scheme. QAction remains in
    widgets, but changes base class.
    
    For QActionGroup, the functions addAction(text/icon), which
    create an action, cannot be implemented in QtGui, hence a base
    class is needed, too (unless they are deprecated and removed).
    
    - Extract base classes providing functionality not based on
      QtWidgets, using virtuals in QGuiActionPrivate to provide
      customization points
    
    - Change QActionEvent to take QGuiAction, removing
      the need to forward declare QAction in QtGui
    
    [ChangeLog][QtGui] Added QGuiAction(Group) and made the equivalent
    existing classes in Qt Widgets derive from them. This provides
    basic functionality for implementing actions in QML.
    
    Task-number: QTBUG-69478
    Change-Id: Ic490a5e3470939ee8af612d46ff41d4c8c91fbdf
    Reviewed-by: Lars Knoll <lars.knoll@qt.io>
    Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
    Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
    Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Commits on Oct 28, 2019
  1. QGraphicsItem: disable deprecated warnings during compilation

    chehrlic committed Oct 27, 2019
    The previous commits which deprecated the function forgot to add
    QT_WARNING_PUSH/QT_WARNING_POP around the affected code.
    
    Change-Id: I042a2bcd40afe2e5fe517954be26a02fd048b563
    Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Commits on Oct 25, 2019
  1. Merge remote-tracking branch 'origin/5.15' into dev

    Qt Forward Merge Bot
    Qt Forward Merge Bot committed Oct 25, 2019
    Change-Id: I379794a01cbf6fb39d94b24cc8c90b1971a212b9
Commits on Oct 24, 2019
  1. Merge remote-tracking branch 'origin/5.13' into 5.14

    Qt Forward Merge Bot authored and ediosyncratic committed Oct 23, 2019
     Conflicts:
    	src/corelib/io/qstandardpaths_unix.cpp
    	src/corelib/tools/qsharedpointer_impl.h
    	tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp
    
    Change-Id: Iae95c5778dc091058f16f6db76f04a0178a9e809
Commits on Oct 11, 2019
  1. Fix QGraphicsScene::update() performance

    anrocqt committed Sep 2, 2019
    A previous fix has caused a performance degradation while adding a
    check for avoiding adding duplicated rectangles to the update list.
    This patch fixes it by using a std::set instead of a QList, avoiding
    duplication while using an O(log N) operation, instead of the O(N)
    used before.
    
    Fixes: QTBUG-77952
    Change-Id: Ifa9fbf110e0bad60ee02a42d91281981fd98ceab
    Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Commits on Oct 10, 2019
  1. Remove leftovers from QML1

    laknoll authored and tronical committed Feb 1, 2019
    QML1 is not supported anymore, remove the leftover hooks for it.
    
    Change-Id: I2900726714c5faea3523b2ebe39bb393364b3bfb
    Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Commits on Oct 4, 2019
  1. Get rid of QList forward declarations

    laknoll committed Oct 2, 2019
    Include qcontainerfwd.h instead where required. This prepares
    for unifying QList and QVector.
    
    Change-Id: I6c85e2bdd44fb41aedd884b0d551f682760df5b5
    Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Commits on Sep 18, 2019
  1. QGraphicsScene: register ItemIndexMethod enum for property

    Fabian Kosmale
    Fabian Kosmale committed Sep 12, 2019
    Fixes: QTBUG-57903
    Change-Id: I2b2725bceb5189dd21102bbacb10e9775740cf5d
    Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Commits on Sep 5, 2019
  1. QGraphicsView: mark obsolete flag DontClipPainter as deprecated

    chehrlic committed Aug 26, 2019
    The enum OptimizationFlag::DontClipPainter is deprecated and not used in
    the code since Qt4 times. Therefore also mark it as deprecated so it can
    be removed with Qt6
    
    Change-Id: I318a55cf42e7a233d13d4ec0144e1977251f5c92
    Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Commits on Aug 28, 2019
  1. QGraphicsItem: mark GraphicsItemChange::ItemMatrixChange as deprecated

    chehrlic committed Aug 26, 2019
    The enum GraphicsItemChange::ItemMatrixChange is deprecated since Qt4
    times. The corresponding matrix functions were also marked as deprecated
    in 5.13 but the enum was forgotten. Therefore also mark it as deprecated
    so it can be removed with Qt6.
    
    Change-Id: I39bec89af14aaefe2e504f5a890ef314574766a1
    Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Commits on Aug 27, 2019
  1. Merge remote-tracking branch 'origin/dev' into 5.14

    liangqi committed Aug 27, 2019
     Conflicts:
    	src/widgets/kernel/qwidget.cpp
    	src/widgets/kernel/qwidget_p.h
    	src/widgets/kernel/qwidgetrepaintmanager.cpp
    	src/widgets/kernel/qwidgetwindow.cpp
    	tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
    
    Change-Id: Ifae457d0427be8e2465e474b055722e11b3b1e5c
Commits on Aug 25, 2019
  1. widgets: Rename QWidgetPrivate::repaint_sys to paintOnScreen

    torarnv committed Aug 23, 2019
    Change-Id: Ic853e42cbed9b770bef0e1d7c7376c861bceb891
    Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Commits on Aug 20, 2019
  1. Remove dead code from Qt 4 times

    torarnv committed Aug 20, 2019
    The benefit of keeping this code around was to inspire or inform
    changes in the areas to take into account possibly missing features
    in Qt 5, but at this point that benefit is questionable. We can
    always use the history to learn about missing pieces if needed.
    
    Change-Id: I87a02dc451e9027be9b97554427bf8a1c6b2c025
    Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
  2. QWidget: replace manual memory management with unique_ptr [6/N]: extra

    marc-kdab committed May 24, 2019
    Had to port a lot of caching temporaries, too. Decided to leave them as
    crefs to unique_ptr to catch any mischief users may be doing with the
    raw pointer instead (like deleting it).
    
    Also fixed a use of 0 as nullptr (by standardizing on pointer-to-bool
    conversion, as is done everywhere else in qwidget.cpp), and made one
    impregnable if condition readable.
    
    Change-Id: Ifdc240bf352c52de0bc3c186fa7a5f4cb2882dd0
    Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Commits on Aug 15, 2019
  1. Introduce a new feature called easingcurve

    Tasuku Suzuki
    Tasuku Suzuki committed Jul 16, 2019
    features.animation and features.scroller depend on the feature.
    In total, this saves around 180KB from QtCore and 75KB from QtWidgets.
    
    Change-Id: I65aac3ec4d50d62424ee33f44b99f3cfb91121d6
    Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
    Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
    Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Commits on Aug 1, 2019
  1. Remove usages of deprecated APIs of qtbase/widgets

    Sona Kurazyan
    Sona Kurazyan committed Jul 23, 2019
    - Replace the usages of deprecated APIs by corresponding
      alternatives in the library code and documentation.
    
    - Build docs for deprecated APIs conditionally, based on deprecation
      version. Remove the docs of methods deprecated since 5.0.0, these
      methods are not compiled anymore.
    
    - Modify the tests to make them build when deprecated APIs disabled:
        * Make the the parts of the tests testing the deprecated APIs to
          be compiled conditionally, only when the corresponding methods
          are enabled.
        * If the test-case tests only the deprecated API, but not the
          corresponding replacement, add tests for the replacement
    
    Task-number: QTBUG-76491
    Task-number: QTBUG-76540
    Task-number: QTBUG-76541
    Change-Id: I6aaf0a1369c479fb880369a38f2b8e1e86b46934
    Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Commits on Jul 30, 2019
  1. QWidget/QLineEdit: deprecate get{Contents,Text}Margins()

    marc-kdab committed May 24, 2019
    We have contentsMargins() and textMargins() methods since 4.6 which
    are much more efficient and easier to use.
    
    [ChangeLog][QtWidgets][QLineEdit] The getTextMargins() member function
    has been deprecated in favor of textMargins().
    
    [ChangeLog][QtWidgets][QWidget] The getContentsMargins() member
    function has been deprecated in favor of contentsMargins().
    
    Change-Id: Ifdb890af6198fc682b94701786c67a5b945a4b4c
    Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
    Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Commits on Jul 29, 2019
  1. QGraphicsWidget: replace manual memory management with unique_ptr

    marc-kdab committed May 24, 2019
    Change-Id: Ib63812cf1e63e33dff5016d37a37f18bf9aa6ee0
    Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Commits on Jul 17, 2019
  1. Merge remote-tracking branch 'origin/5.13' into dev

    Qt Forward Merge Bot authored and ediosyncratic committed Jul 16, 2019
     Conflicts:
    	src/corelib/global/qlogging.cpp
    	src/gui/painting/qtextureglyphcache_p.h
    	src/gui/text/qfontengine.cpp
    	src/widgets/widgets/qlineedit.cpp
    
    Change-Id: Ic8798538df466b7141caa8bbf1fb7605eb56be37
Commits on Jul 12, 2019
  1. Finish deprecating obsolete members of QWheelEvent

    ec1oud committed Jul 3, 2019
    In Qt 5.0, delta() and orientation() were already marked obsolete,
    but Widgets and tests have kept on depending on them all this time.
    We now start using alternative API so they can really be deprecated.
    All constructors except the newest one are also deprecated.
    The plan is for all events from pointing devices to have
    QPointF position() and globalPosition(), so we deprecate
    the other position accessors.
    
    [ChangeLog][QtGui] Obsolete constructors and accessors in QWheelEvent
    now have proper deprecation macros.  What is left is intended to be
    compatible with planned changes in Qt 6.
    
    Change-Id: I26250dc90922b60a6ed20d7f65f38019da3e139e
    Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
  2. Merge remote-tracking branch 'origin/5.12' into 5.13

    Qt Forward Merge Bot authored and ediosyncratic committed Jul 11, 2019
     Conflicts:
    	configure.pri
    
    Also required s/solid\.color/solidColor/ in a couple of places in:
    	src/gui/painting/qpaintengine_raster.cpp
    
    Change-Id: I29937f63e9779deb6dac7ae77e2948d06ebc0319
Commits on Jul 11, 2019
  1. Merge remote-tracking branch 'origin/5.13' into dev

    Qt Forward Merge Bot
    Qt Forward Merge Bot committed Jul 11, 2019
    Change-Id: Icaabf08f9af539ddf844d96bc9c3a2d09408ba8a
Commits on Jul 9, 2019
  1. [Doc] Fix minor typos

    JKSH committed Jul 9, 2019
    Change-Id: I7e74806218dcc07d800f4ec08e94abce32483f5e
    Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Commits on Jul 8, 2019
  1. Don't set the mouse cursor for items that are disabled

    vohi committed Jul 5, 2019
    As with widgets, items that are disabled should not receive any input
    events.
    
    Similar to QGraphicsScene, which ignores disabled items when handling
    mouse presses, the view should also ignore them when handling mouse
    moves to update the cursor.
    
    Since QGraphicsView only adjusts the cursors on mouse moves, reenabling
    an item that is currently under the mouse will not change the cursor.
    This is consistent with other changes of item attributes that would
    position the item under the mouse (such as moving it). The overhead of
    hit-testing items for every such attribute change would be too large,
    and applications can generate a mouse move event if they really need
    to adjust the cursor in all situations.
    
    [ChangeLog][QtWidgets][QGraphicsView] Ignore disabled items when setting
    the mouse cursor.
    
    Fixes: QTBUG-76765
    Change-Id: Ifcd31fc0581e8421e58eeb436a55b031909eed7e
    Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Commits on Jun 27, 2019
  1. QtWidgets: Fix static method invocations

    FriedemannKleint committed Jun 20, 2019
    Apply fixits by Creator and results of manual search focusing on
    QCore/Gui/Applicaton(Private) methods and variables to prepare for
    splitting out some classes.
    
    Task-number: QTBUG-69478
    Task-number: QTBUG-76497
    Task-number: QTBUG-76493
    Change-Id: Iaf468166793e0cabb514b51c827b30317bf45a2d
    Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Commits on May 27, 2019
  1. Merge remote-tracking branch 'origin/5.12' into 5.13

    FriedemannKleint committed May 27, 2019
    Change-Id: Iaf6bd52972b562b9c91d9e93a988d26b0eb9d3b4
Commits on May 9, 2019
  1. Avoid rounding of the size in QGraphicsPixmapItem::boundingRect()

    Alexander Volkov
    Alexander Volkov committed May 9, 2019
    Fixes: QTBUG-75458
    Change-Id: Ib240ddc0b490ae3c0348b6bfa290ad1f51b1e071
    Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
    Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Older
You can’t perform that action at this time.