From 9b88ca4f033135f1a60871873da7f0732bc19d4d Mon Sep 17 00:00:00 2001 From: Antti Kokko Date: Wed, 9 Jan 2019 10:09:41 +0200 Subject: Add changes file for Qt 5.12.1 + 0489c0a88a293696592c5892383698a015ae68c7 Improve startup benchmark + 602f1225938f9338c3ee799c64d5449ebc12b8bc Refine startup benchmark termination condition + cf957e407030fc260bd86882cf2f79724126abdd Bump version + 10b3bffbd21b6265a3d124f310c99fcbac2b027f TableView: Handle dynamic insertion of TableViewColumns correctly + 6b7f91c097f7e47cf2683d08b5838fd061a872bd Add changes file for Qt 5.11.3 + 50b6fb27458708a18f4114e3ebec0fa632b2659f Unskip test of fixed bug + 80ba7e03afe18cc44715f7cf9a038bedff01f328 QQuickTreeModelAdaptor1: fix out of range issue in selectionForRowRange + 8abf15b4ba974576e13f37b09117454fc1e6b1d9 Static: Install the qmldir for the Styles module + a9436b597916d5619cbbbbd103bc482ddaf4359a Static: Register the base style qml files so they can be found + 69c7e95da101d4d66d25c4850f3591d4ccd2bbc1 Insert before next item when it exists + bd952e904070d8eb07748d620829e9dadb8022ba Bump version Change-Id: I26d4c9fd88ddc3c17cad7a0b75b63b3527da03b0 Reviewed-by: Mitch Curtis --- dist/changes-5.12.1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dist/changes-5.12.1 diff --git a/dist/changes-5.12.1 b/dist/changes-5.12.1 new file mode 100644 index 00000000..ac729cbf --- /dev/null +++ b/dist/changes-5.12.1 @@ -0,0 +1,27 @@ +Qt 5.12.1 is a bug-fix release. It maintains both forward and backward +compatibility (source and binary) with Qt 5.12.0. + +For more details, refer to the online documentation included in this +distribution. The documentation is also available online: + +http://doc.qt.io/qt-5/index.html + +The Qt version 5.12 series is binary compatible with the 5.11.x series. +Applications compiled for 5.11 will continue to run with 5.12. + +Some of the changes listed in this file include issue tracking numbers +corresponding to tasks in the Qt Bug Tracker: + +https://bugreports.qt.io/ + +Each of these identifiers can be entered in the bug tracker to obtain more +information about a particular change. + +**************************************************************************** +* Controls * +**************************************************************************** + + - QQuickTreeModelAdaptor1: + * Fixed an issue where an invalid access was done if either extended or + multiple selection was in use and the mouse went out of the view on + top of the model. -- cgit v1.2.1 From 30476f12de5f3fdc1ee91d0065a52c8f661afa7b Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 16 Nov 2018 09:19:42 +0100 Subject: Fix incorrect transientScrollBars binding in BasicTableView Fixes: QTBUG-69041 Change-Id: I7ad62850c8890d7ec53678754a164ad2bcfbdb8e Reviewed-by: Shawn Rutledge --- src/controls/Private/BasicTableView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controls/Private/BasicTableView.qml b/src/controls/Private/BasicTableView.qml index 1f846b57..37ecabbf 100644 --- a/src/controls/Private/BasicTableView.qml +++ b/src/controls/Private/BasicTableView.qml @@ -422,9 +422,9 @@ ScrollView { interactive: Settings.hasTouchScreen property var rowItemStack: [] // Used as a cache for rowDelegates - readonly property bool transientScrollbars: __style && !!__style.transientScrollBars + readonly property bool transientScrollBars: __style && !!__style.transientScrollBars readonly property real vScrollbarPadding: __scroller.verticalScrollBar.visible - && !transientScrollbars && Qt.platform.os === "osx" ? + && !transientScrollBars && Qt.platform.os === "osx" ? __verticalScrollBar.width + __scroller.scrollBarSpacing + root.__style.padding.right : 0 Binding { -- cgit v1.2.1 From d049f759c6f897db528ca549435c56b4420b016e Mon Sep 17 00:00:00 2001 From: Joni Poikelin Date: Fri, 15 Dec 2017 07:36:39 +0200 Subject: Fix progress indicator with vertical progress bar Fixes: QTBUG-65209 Change-Id: I1cdd2809e4bc3f2d37421fa785c84b1fa0b9d12e Reviewed-by: Shawn Rutledge --- src/controls/Styles/Base/ProgressBarStyle.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controls/Styles/Base/ProgressBarStyle.qml b/src/controls/Styles/Base/ProgressBarStyle.qml index b65c0f40..d51e056d 100644 --- a/src/controls/Styles/Base/ProgressBarStyle.qml +++ b/src/controls/Styles/Base/ProgressBarStyle.qml @@ -134,8 +134,7 @@ Style { clip: true Rectangle { id: base - width: control.width - height: control.height + anchors.fill: parent radius: TextSingleton.implicitHeight * 0.16 antialiasing: true gradient: Gradient { -- cgit v1.2.1 From b7f5cb186df211c1bfcdbaee06fb7ce9146e9a0e Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 19 Feb 2019 15:51:03 +0100 Subject: Update the CalendarHeaderModel when changing the locale set Change-Id: I8af18ebfcc77f6080cfd5f0cade5042d0cd4a9a4 Fixes: QTBUG-73765 Reviewed-by: Mitch Curtis --- src/controls/Private/CalendarHeaderModel.qml | 7 +++++-- src/controls/Styles/Base/CalendarStyle.qml | 1 + tests/auto/controls/data/tst_calendar.qml | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/controls/Private/CalendarHeaderModel.qml b/src/controls/Private/CalendarHeaderModel.qml index b978dbdc..40328a8b 100644 --- a/src/controls/Private/CalendarHeaderModel.qml +++ b/src/controls/Private/CalendarHeaderModel.qml @@ -89,7 +89,10 @@ ListModel { dayOfWeek: Locale.Saturday } - Component.onCompleted: { + Component.onCompleted: updateFirstDayOfWeek() + onLocaleChanged: updateFirstDayOfWeek() + + function updateFirstDayOfWeek() { var daysOfWeek = [Locale.Sunday, Locale.Monday, Locale.Tuesday, Locale.Wednesday, Locale.Thursday, Locale.Friday, Locale.Saturday]; var firstDayOfWeek = root.locale.firstDayOfWeek; @@ -97,7 +100,7 @@ ListModel { var shifted = daysOfWeek.splice(firstDayOfWeek, daysOfWeek.length - firstDayOfWeek); daysOfWeek = shifted.concat(daysOfWeek) - if (firstDayOfWeek !== Locale.Sunday) { + if (firstDayOfWeek !== root.get(0).dayOfWeek) { for (var i = 0; i < daysOfWeek.length; ++i) { root.setProperty(i, "dayOfWeek", daysOfWeek[i]); } diff --git a/src/controls/Styles/Base/CalendarStyle.qml b/src/controls/Styles/Base/CalendarStyle.qml index 20459274..ef0cb779 100644 --- a/src/controls/Styles/Base/CalendarStyle.qml +++ b/src/controls/Styles/Base/CalendarStyle.qml @@ -410,6 +410,7 @@ Style { anchors.leftMargin: (control.weekNumbersVisible ? weekNumbersItem.width : 0) anchors.right: parent.right spacing: gridVisible ? __gridLineWidth : 0 + property alias __repeater: repeater Repeater { id: repeater diff --git a/tests/auto/controls/data/tst_calendar.qml b/tests/auto/controls/data/tst_calendar.qml index 1f8d9a8d..08bd756d 100644 --- a/tests/auto/controls/data/tst_calendar.qml +++ b/tests/auto/controls/data/tst_calendar.qml @@ -985,5 +985,13 @@ Item { compare(testcase.aysncDelegatesDestructed[i], true); } } + + function test_firstDayOfWeekAfterLocaleChange() { + calendar.selectedDate = new Date(2013, 0, 1); + calendar.locale = Qt.locale("en"); + compare(calendar.__panel.dayOfWeekHeaderRow.__repeater.model.get(0).dayOfWeek, 0) + calendar.locale = Qt.locale("fr"); + compare(calendar.__panel.dayOfWeekHeaderRow.__repeater.model.get(0).dayOfWeek, 1) + } } } -- cgit v1.2.1 From 46425199ebcdd4cb9facb471f67e17a941ca103f Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Thu, 28 Feb 2019 10:36:14 +0100 Subject: Fix blacklisting of auto tests When doing shadow builds, the BLACKLIST file can only be found if QTEST_SET_MAIN_SOURCE_PATH is set. Fixes: QTBUG-74117 Change-Id: Icfb76c313800fefbb68f911779d5ef058b67cf40 Reviewed-by: Mitch Curtis --- tests/shared/qt_quick_controls_quicktest.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/shared/qt_quick_controls_quicktest.h b/tests/shared/qt_quick_controls_quicktest.h index bf6c6559..b12cfc76 100644 --- a/tests/shared/qt_quick_controls_quicktest.h +++ b/tests/shared/qt_quick_controls_quicktest.h @@ -43,6 +43,7 @@ QT_BEGIN_NAMESPACE #define QT_QUICK_CONTROLS_TEST_MAIN(name) \ int main(int argc, char **argv) \ { \ + QTEST_SET_MAIN_SOURCE_PATH \ QtQuickControlsTestApp* app = 0; \ if (!QCoreApplication::instance()) \ app = new QtQuickControlsTestApp(argc, argv); \ -- cgit v1.2.1