From b0e16bdd187848df082c7d895f2ca5e78b6f6738 Mon Sep 17 00:00:00 2001 From: Frederik Schwarzer Date: Mon, 22 Aug 2016 17:55:47 +0200 Subject: qtquickcontrols-tableview.qdoc: unify wording of documentation This way it fits better to the other entries. Change-Id: I099ceaec4ecf80d267cb431815d63597e004fef1 Reviewed-by: Shawn Rutledge --- src/controls/doc/src/qtquickcontrols-tableview.qdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/controls') diff --git a/src/controls/doc/src/qtquickcontrols-tableview.qdoc b/src/controls/doc/src/qtquickcontrols-tableview.qdoc index 92efcff7..b5fc4e05 100644 --- a/src/controls/doc/src/qtquickcontrols-tableview.qdoc +++ b/src/controls/doc/src/qtquickcontrols-tableview.qdoc @@ -223,8 +223,8 @@ \list \li function \b clear() - deselects all rows \li function \b selectAll() - selects all rows - \li function \b select(from, to) - select a range - \li function \b deselect(from, to) - de-selects a range + \li function \b select(from, to) - selects a range + \li function \b deselect(from, to) - deselects a range \li function \b forEach(callback) - iterates over all selected rows \li function \b contains(index) - checks whether the selection includes the given index \li signal \b selectionChanged() - the current row selection changed -- cgit v1.2.1 From 094ad30c94a72784449f43ef06d2172d644ab0fd Mon Sep 17 00:00:00 2001 From: Oleg Yadrov Date: Thu, 27 Oct 2016 14:02:39 -0700 Subject: Calendar: fix date selection if system time zone is set to DST Date() constructor uses local time. E.g. in Brazil Oct-21-2012 is the start of daylight saving time, thus local dates at Oct-21-2012 between 00:00 and 01:00 do not exist there, so new Date(2012,10,21) returns Oct-20-2012 23:00, but new Date(2012,10,21,1) returns Oct-21-2012 00:00. 1 hour is enough to "jump over" the lost hour, but just in case we use 12. Task-number: QTBUG-54559 Change-Id: I35e1b69868d27dd98f78c4d57b3128a51b3e4b5e Reviewed-by: Edward Welbourne Reviewed-by: Mitch Curtis --- src/controls/Calendar.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/controls') diff --git a/src/controls/Calendar.qml b/src/controls/Calendar.qml index b5dadc0b..fe47b8a3 100644 --- a/src/controls/Calendar.qml +++ b/src/controls/Calendar.qml @@ -215,7 +215,9 @@ Control { */ property CalendarModel __model: CalendarModel { locale: calendar.__locale - visibleDate: new Date(visibleYear, visibleMonth, 1) + + // TODO: don't set the hour when QTBUG-56787 is fixed + visibleDate: new Date(visibleYear, visibleMonth, 1, 12) } style: Settings.styleComponent(Settings.style, "CalendarStyle.qml", calendar) -- cgit v1.2.1 From 32831880512272968e26ed6a85a5cd98ecbda3b6 Mon Sep 17 00:00:00 2001 From: Filippo Cucchetto Date: Wed, 23 Nov 2016 10:08:38 +0100 Subject: Fixed possible crash due to out of memory on ARM When diving two real values we can obtain an Infinite value. The qml engine perform an implicit conversion (and silent) if this value is directly assigned to an "int" property. On Arm the conversion of Infinite to int gives the value +2147483648. Thus the Repeater model instantiate 2147483648 items and crashes. By morphing both the rowHeight and paddedRowCount properties to "real" we keep the Infinite value semantic. This allows the Repeater to handle properly the Infinite case. Task-number: QTBUG-57283 Change-Id: I376f9ca497bea1f1aab413d1c1ba87d918b73fbb Reviewed-by: Mitch Curtis --- src/controls/Private/BasicTableView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/controls') diff --git a/src/controls/Private/BasicTableView.qml b/src/controls/Private/BasicTableView.qml index afec226d..b919f135 100644 --- a/src/controls/Private/BasicTableView.qml +++ b/src/controls/Private/BasicTableView.qml @@ -471,8 +471,8 @@ ScrollView { property bool pressed: false } } - property int rowHeight: rowSizeItem.implicitHeight - property int paddedRowCount: height/rowHeight + property int rowHeight: Math.floor(rowSizeItem.implicitHeight) + property int paddedRowCount: rowHeight != 0 ? height/rowHeight : 0 y: listView.contentHeight - listView.contentY + listView.originY width: parent.width -- cgit v1.2.1