From 8c3f2f5f6903f6b16778d55ca49812bcfde174a1 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 31 Oct 2013 10:26:44 +0100 Subject: Mention androiddeployqt in changes-5.2.0 The new way deployment is done can be confusing to users of Qt 5.1 and Necessitas, so we need to mention that it has changed and point them to the documentation. Change-Id: I8e9890699f57d6000370c384c52fcb093a917bef Reviewed-by: Sergio Ahumada --- dist/changes-5.2.0 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index a3a7db8190..287cda4821 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -103,3 +103,15 @@ QtNetwork - Support for preconnecting to servers before making HTTP and HTTPS connections. This allows for much reduced latency when the hosts to be connected to are known. + +**************************************************************************** +* Platform Specific Changes * +**************************************************************************** + +Qt for Android +-------------- + - Project structure and deployment has changed with the introduction of + androiddeployqt. Source and build files are no longer mixed, and the + build files for the APK package should not be touched. Customizing + the build files is possible. Read the documentation for androiddeployqt + for more information. -- cgit v1.2.3 From e8f2c4d2cd5432e0570f70a6f9379f2eaa43170c Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 23 Oct 2013 13:36:15 +0200 Subject: QFileDialog: document the consequences of being "widgetless" After 37ca2224eca671200a2710f57f970d2993e62aa5 it's an exposed behavior change that the widgets and related paraphernalia don't exist. Task-number: QTBUG-34100 Change-Id: Ie0ebcb8c5c5668b6c12c5447f25bfbfd893dec6c Reviewed-by: Jerome Pasion --- dist/changes-5.2.0 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 287cda4821..e055e27a0e 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -35,6 +35,11 @@ QtWidgets - QFileDialog::setDefaultSuffix() removes leading dot characters. +- [QTBUG-34132] QFileDialog does not instantiate widgets if a native dialog + will be used instead. Therefore some accessors which previously returned + unused objects will now return null. As before, you can set the + DontUseNativeDialog option to ensure that widgets will be created and used instead. + - QSizePolicy got a retainSizeWhenHidden attribute. - [QTBUG-31602] QSpinBox size calculation will now be fixed when stylesheets are -- cgit v1.2.3 From a174eb95f1a39dcc10e50d889c2d3f4b17c004e8 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Thu, 24 Oct 2013 12:08:21 +0200 Subject: update changelog for QtSql 5.2.0 (and 5.1.0 in retrospect) Change-Id: I112e20d16f4da86487b95b4b01c4f3032ea2d3bd Reviewed-by: Mark Brand --- dist/changes-5.1.0 | 7 +++++++ dist/changes-5.2.0 | 29 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0 index bc0db0b9c8..8ba4547f93 100644 --- a/dist/changes-5.1.0 +++ b/dist/changes-5.1.0 @@ -99,6 +99,13 @@ QtNetwork - QHostInfo: * Allow QHostInfo::lookupHost() with no receiver to warm the DNS cache. + +QtSql +----- +This changelog as released was missing QtSql changes. +Please refer to changes-5.2.0 for QtSql 5.1.0 changes. + + QtWidgets --------- diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index e055e27a0e..1eda87b553 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -109,6 +109,35 @@ QtNetwork connections. This allows for much reduced latency when the hosts to be connected to are known. +QtSql +----- +Changes in Qt 5.1.0 (missing from released changelog dist/changes-5.1.0) +- [QTBUG-28088] Remove dependency of DB driver headers on qsqlcachedresult_p.h. +- Deprecate QSqlError setters. + The constructor is sufficient, since it has a parameter for each member variable. +- Rename the SQL driver header files to _p.h (make private) + The drivers were never public API. They were exposed by mistake in + public headers. What's more, they have #include'd a private header + (qsqlcachedresult_p.h) since at least Qt 4.5.1. That means no one used + those headers in Qt 4 (private headers weren't installed then) and + it's unlikely anyone did in 5.0. +- ODBC: Implemented lastInsertId() for some ODBC compatible databases. +- PSQL: Make lastInsertID work for tables without OIDs. +- [QTBUG-14904] SQLITE: Fix for Sql query aliases with dots +- [QTBUG-2192] ODBC: fix loss of milliseconds when binding QDateTime +- [QTBUG-30076] PSQL: escape backslashes only when server requires it + IMPORTANT: Applications that implemented their own workarounds must be + updated to avoid misbehavior and SQL injection vulnerabilities. +- [QTBUG-10569] ODBC: fixed QODBCResult::exec() return value for DELETE + operations when no rows are affected. +- ODBC: Fixed loss of column metadata on SQL_NO_DATA. +- QSqlTableModel: expose methods for getting primary values. +- ODBC: Fixed possible cause of spurious errors (commit af35ee291a1bbbc8) + +Changes in Qt 5.2.0 +- [QTBUG-29261] IBASE: Construct a valid QTime when creating timestamps for iBase SQL driver. +- [QTBUG-33389] PSQL: Format QDateTime following ISO8601. + **************************************************************************** * Platform Specific Changes * **************************************************************************** -- cgit v1.2.3 From d8bf317546bcfab0b6b50375218429fa9d470705 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 1 Oct 2013 12:34:20 +0200 Subject: make qreal double by default on all platforms On modern ARM CPUs there is no speed difference between float and double anymore, so let's rather use double for qreal to avoid rounding and precision issues. Like this we also get much better compatibility with our desktop OSes. This is not binary compatible on ARM, but the old behavior can be restored by passing -qreal float to configure. Change-Id: I2a4b61e19a3dfa6b0bd76734cecf2634c97207fc Reviewed-by: Thiago Macieira --- dist/changes-5.2.0 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 1eda87b553..c0db0f28f9 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -15,10 +15,21 @@ corresponding to tasks in the Qt Bug Tracker: Each of these identifiers can be entered in the bug tracker to obtain more information about a particular change. +**************************************************************************** +* Architecture Specific Changes * +**************************************************************************** + +Qt is now compiled with qreal typedef'ed to double on all platforms. qreal +was a float on ARM chipsets before. This guarantees more consistent behavior +between all platforms Qt supports, but is binary incompatible to Qt 5.1 +on ARM. The old behavior can be restored by passing -qreal float to +configure. + **************************************************************************** * Library * **************************************************************************** + QtWidgets --------- -- cgit v1.2.3 From 1f6dfa774959830a915f3e2a7b0561ca29b8c485 Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Mon, 28 Oct 2013 09:25:11 +0100 Subject: Add QSQLITE_OPEN_URI database connection flag This flag enables the URI mode for database names in the SQLite backend. Without this flag, it's not possible to use URIs like 'file:somedb?mode=memory&cache=shared' to create shared, in-memory databases. Change-Id: I2938184dad1f27c7af454385ca305bd4f6ed1a5e Reviewed-by: Mark Brand --- dist/changes-5.2.0 | 1 + 1 file changed, 1 insertion(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index c0db0f28f9..2536076f12 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -148,6 +148,7 @@ Changes in Qt 5.1.0 (missing from released changelog dist/changes-5.1.0) Changes in Qt 5.2.0 - [QTBUG-29261] IBASE: Construct a valid QTime when creating timestamps for iBase SQL driver. - [QTBUG-33389] PSQL: Format QDateTime following ISO8601. +- Add QSQLITE_OPEN_URI option to QSQLITE driver **************************************************************************** * Platform Specific Changes * -- cgit v1.2.3 From f0841085e771f3915995af20b8473ebde992689f Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 5 Nov 2013 10:05:05 +0100 Subject: Add note about fullscreen on Android to changes-5.2.0 Task-number: QTBUG-33135 Change-Id: I49c74fee0da738768a20735c4aac904f40322298 Reviewed-by: Sergio Ahumada --- dist/changes-5.2.0 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 2536076f12..ae0d785aab 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -161,3 +161,8 @@ Qt for Android build files for the APK package should not be touched. Customizing the build files is possible. Read the documentation for androiddeployqt for more information. + + - Status bar visibility is now controlled by Qt, so the window state will + override settings in the AndroidManifest.xml. The default is still to + show the status bar (QWindow::showMaximized()). Use + QWindow::showFullScreen() to hide it. -- cgit v1.2.3 From c819a8926959ecadfe2e588e28918ed6fb90ce5d Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Fri, 8 Nov 2013 13:53:26 +0100 Subject: Document the BC break of viewportSizeHint() in itemviews Since users were not supposed to use this feature at all, just live with the BC break, but document it. In order to prevent possible problems in the future, introduce dummy overrides in QAbstractItemView and QListView as well. Also, fix the visibility of the overrides (it's protected, not public). Task-number: QTBUG-34667 Change-Id: Ib4554ae5e1e7d3ce4ea8e8703e1fea9e2231edb0 Reviewed-by: Marc Mutz --- dist/changes-5.2.0 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index ae0d785aab..b0446fbbaf 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -34,8 +34,12 @@ QtWidgets --------- - QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to AdjustToContents - it will make use of the new protected viewportSizeHint() (binary compatible since it - was reserved in Qt5). This function returns a suggested size based on contents. + it will make use of the protected viewportSizeHint() virtual function. This + function returns a suggested size based on contents. Note that although the + viewportSizeHint() virtual function was reserved in 5.0, user code was not + supposed to be overriding it (as the function was private and undocumented). + Code that was overriding viewportSizeHint() needs to be recompiled against 5.2 + for this feature to work correctly. - QTreeView now has setTreePosition to allow the treestructure to show data from other columns than logicalindex zero. -- cgit v1.2.3 From 900c550f0145f00ec8c39560af2e42c8a58ef9d3 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 12 Nov 2013 18:06:07 +0100 Subject: Doc: document QCoreApplication::arguments() behavior fix in Windows Task-number: QTBUG-34744 Change-Id: I97699710a5a8af34808bab9037ccea065f07b7d5 Reviewed-by: Kai Koehne --- dist/changes-5.2.0 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index b0446fbbaf..898441a675 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -158,6 +158,14 @@ Changes in Qt 5.2.0 * Platform Specific Changes * **************************************************************************** + +Qt for Windows +-------------- + - QCoreApplication::arguments() changed the handling of single quotes, double quotes + and the backslash character, in order to match what argv[] contains. + In particular, single quotes are no longer removed from the argument string. + (QTBUG-15379, QTBUG-30628) + Qt for Android -------------- - Project structure and deployment has changed with the introduction of -- cgit v1.2.3 From 1073d386172f65a2a9b3a2915c6bb9f7ff125338 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 18 Nov 2013 20:01:24 -0800 Subject: Update changelog for 5.2.0 RC1 Change-Id: I3a34fe4d26dab1eab9518f995406ecc85d5ff4c1 Reviewed-by: Sergio Ahumada Reviewed-by: Oswald Buddenhagen Reviewed-by: Lars Knoll --- dist/changes-5.2.0 | 272 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 201 insertions(+), 71 deletions(-) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 898441a675..09888a353c 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -16,56 +16,44 @@ Each of these identifiers can be entered in the bug tracker to obtain more information about a particular change. **************************************************************************** -* Architecture Specific Changes * +* Important Behavior Changes * **************************************************************************** -Qt is now compiled with qreal typedef'ed to double on all platforms. qreal -was a float on ARM chipsets before. This guarantees more consistent behavior -between all platforms Qt supports, but is binary incompatible to Qt 5.1 -on ARM. The old behavior can be restored by passing -qreal float to -configure. + - Qt is now compiled with qreal typedef'ed to double on all + platforms. qreal was a float on ARM chipsets before. This guarantees more + consistent behavior between all platforms Qt supports, but is binary + incompatible to Qt 5.1 on ARM. The old behavior can be restored by + passing -qreal float to configure. + - The supported date range in QDateTime has been reduced to about +/- 292 + million years, the range supported by the number of msecs since the Unix + epoch of 1 Jan 1970 as stored in a qint64, and as able to be used in the + setMSecsSinceEpoch() and toMSecsSinceEpoch() methods. + + - QUrl and QUrlQuery: + * [QTBUG-31660] QUrl no longer considers all delimiter characters + equivalent to their percent-encoded forms. Now, both classes always + keep all delimiters exactly as they were in the original URL text. + * [QTBUG-31660] QUrl no longer decodes %7B and %7D to "{" and "}" in the + output of toString() + * QUrl no longer supports QUrl::FullyDecoded mode in authority() and + userInfo(), nor QUrl::DecodedMode in setAuthority() and setUserInfo(). + * [QTBUG-31945] QUrl no longer decodes %23 found in the fragment to "#" + in the output of toString(QUrl::FullyEncoded) or toEncoded() + * QUrl now defaults to decoded mode in the getters and setters for + userName, password, host, topLevelDomain, path and fileName. This + means a '%' in one of those fields is now returned (or set) as '%' + rather than "%25". In the unlikely case where the former behavior was + expected, pass PrettyDecoded to the getter and TolerantMode to the + setter. + * QUrl now normalizes the path given in setPath, removing ./ and ../ and + duplicate slashes. **************************************************************************** * Library * **************************************************************************** - -QtWidgets ---------- - -- QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to AdjustToContents - it will make use of the protected viewportSizeHint() virtual function. This - function returns a suggested size based on contents. Note that although the - viewportSizeHint() virtual function was reserved in 5.0, user code was not - supposed to be overriding it (as the function was private and undocumented). - Code that was overriding viewportSizeHint() needs to be recompiled against 5.2 - for this feature to work correctly. - -- QTreeView now has setTreePosition to allow the treestructure to show data from other - columns than logicalindex zero. - -- [QTBUG-4206] QTableView resizeToContents will now adjust to actual contents - and not just visible area. QHeaderView::setAutoResizePrecision() has been - introduced to control how precise the autoResize should be. - -- QFileDialog::setDefaultSuffix() removes leading dot characters. - -- [QTBUG-34132] QFileDialog does not instantiate widgets if a native dialog - will be used instead. Therefore some accessors which previously returned - unused objects will now return null. As before, you can set the - DontUseNativeDialog option to ensure that widgets will be created and used instead. - -- QSizePolicy got a retainSizeWhenHidden attribute. - -- [QTBUG-31602] QSpinBox size calculation will now be fixed when stylesheets are - used. - QtCore ------ -- [QTBUG-30250] QTime, QDateTime: - When calling QTime::toString(Qt::TextDate) and QTime::toString(Qt::ISODate), - milliseconds are now included in the returned string. This also applies to - QDateTime::toString(Qt::TextDate) and QDateTime::toString(ISODate). - QtAlgorithms With STL no longer being optional for building and using Qt, a number of parts @@ -96,14 +84,82 @@ QtCore - qLess (std::less) - qGreater (std::greater) + - QDateTime: + * [QTBUG-26161][QTBUG-29666] Fully implement support for Qt::TimeSpec of + Qt::OffsetFromUTC, added new methods for offsetFromUTC(), + toTimeSpec(), and toOffsetFromUTC(). + * Added convenience methods for fromMSecsSinceEpoch() and fromTime_t() + to take time spec to be used in returned datetime. + * Add method timeZoneAbbreviation() to return effective time zone + abbreviation. + * The debug datastream is now an ISO-like format instead of Qt::TextDate + * The Standard Time to Daylight Time transition for Qt::LocalTime is now + handled correctly. Any date set in the "missing" hour is now + considered invalid. All date math results that fall into the missing + hour will be automatically adjusted to a valid time in the following + hour. + * Added new method isDaylightTime() to return if the datetime is in + Daylight Time or not. + * Add support for a new Qt::TimeZone spec to be used with QTimeZone to + define times in a specific time zone. + + - QJson: + * [QTBUG-33229] The Writer and the Parser now fully accept non-character + unicode points. + + - QJsonValue: + * Added QJsonValue::toInt(). + + - QStandardPaths: + * QStandardPaths::enableTestMode is deprecated and is replaced by + QStandardPaths::setTestModeEnabled. + + - QTime: + * [QTBUG-30250] When calling QTime::toString(Qt::TextDate) and + QTime::toString(Qt::ISODate), milliseconds are now included in + the returned string. This also applies to + QDateTime::toString(Qt::TextDate) and + QDateTime::toString(ISODate). + * Added new methods fromMSecsSinceStartOfDay() to create a new QTime + from an msecs value, and msecsSinceStartOfDay() to return the QTime as + the number of msecs since the start of the day. + + - QTimeZone: + * Added new QTimeZone class to support time tone calculations using the + host platform time zone database and the Olsen time zone ID's. + + - QUrl: + * [QTBUG-33229] QUrl now fully accepts non-character unicode points; + they are encoded as percent characters; they can also be pretty + decoded + + - QUtf8: + * [QTBUG-33229] UTF-8 now accepts non-character unicode points; these + are not replaced by the replacement character anymore + + - QVariant: + * Fixed QVariant::canConvert with longlong + * Variant containing enum types can now be converted to integer + +QtDeclarative +------------- + + - ColorDialog: + * Added currentColor property. + QtGui ----- -- [QTBUG-28228] Session Management: - The new QPlatformSessionManager class brings back the session management - functionality. It allows the implementation of platform specific behavior - related to session management. For platform that don't support this - feature the default behavior has not changed. - Both X11 and Windows session management are supported. + - Session Management: + * [QTBUG-28228] The new QPlatformSessionManager class brings back + the session management functionality. It allows the + implementation of platform specific behavior related to session + management. For platform that don't support this feature the + default behavior has not changed. Both X11 and Windows session + management are supported. + + - QPolygonF: + * When a QVariant holds a QPolygonF() then it will be correctly seen as + a null QVariant. QtNetwork --------- @@ -124,35 +180,102 @@ QtNetwork connections. This allows for much reduced latency when the hosts to be connected to are known. +QtPrintSupport +-------------- + + - QPrintDialog: + * Added support for setting CUPS job options in the print dialog. + * Added support for setting CUPS Banner pages in the print dialog. + * Added support for setting CUPS Page Set (even/odd pages only) in the + print dialog. + * Added support for setting CUPS Pages Per Sheet and Pages Per Sheet + Layout options + * Added CUPS server-side print range support for apps that can't support + print range option themselves + QtSql ----- + Changes in Qt 5.1.0 (missing from released changelog dist/changes-5.1.0) -- [QTBUG-28088] Remove dependency of DB driver headers on qsqlcachedresult_p.h. -- Deprecate QSqlError setters. - The constructor is sufficient, since it has a parameter for each member variable. -- Rename the SQL driver header files to _p.h (make private) - The drivers were never public API. They were exposed by mistake in - public headers. What's more, they have #include'd a private header - (qsqlcachedresult_p.h) since at least Qt 4.5.1. That means no one used - those headers in Qt 4 (private headers weren't installed then) and - it's unlikely anyone did in 5.0. -- ODBC: Implemented lastInsertId() for some ODBC compatible databases. -- PSQL: Make lastInsertID work for tables without OIDs. -- [QTBUG-14904] SQLITE: Fix for Sql query aliases with dots -- [QTBUG-2192] ODBC: fix loss of milliseconds when binding QDateTime -- [QTBUG-30076] PSQL: escape backslashes only when server requires it - IMPORTANT: Applications that implemented their own workarounds must be - updated to avoid misbehavior and SQL injection vulnerabilities. -- [QTBUG-10569] ODBC: fixed QODBCResult::exec() return value for DELETE - operations when no rows are affected. -- ODBC: Fixed loss of column metadata on SQL_NO_DATA. -- QSqlTableModel: expose methods for getting primary values. -- ODBC: Fixed possible cause of spurious errors (commit af35ee291a1bbbc8) + - [QTBUG-28088] Remove dependency of DB driver headers on qsqlcachedresult_p.h. + - Deprecate QSqlError setters. The constructor is sufficient, since it has + a parameter for each member variable. + - Rename the SQL driver header files to _p.h (make private) + The drivers were never public API. They were exposed by mistake in + public headers. What's more, they have #include'd a private header + (qsqlcachedresult_p.h) since at least Qt 4.5.1. That means no one used + those headers in Qt 4 (private headers weren't installed then) and + it's unlikely anyone did in 5.0. + - ODBC: Implemented lastInsertId() for some ODBC compatible databases. + - PSQL: Make lastInsertID work for tables without OIDs. + - [QTBUG-14904] SQLITE: Fix for Sql query aliases with dots + - [QTBUG-2192] ODBC: fix loss of milliseconds when binding QDateTime + - [QTBUG-30076] PSQL: escape backslashes only when server requires it + IMPORTANT: Applications that implemented their own workarounds must be + updated to avoid misbehavior and SQL injection vulnerabilities. + - [QTBUG-10569] ODBC: fixed QODBCResult::exec() return value for DELETE + operations when no rows are affected. + - ODBC: Fixed loss of column metadata on SQL_NO_DATA. + - QSqlTableModel: expose methods for getting primary values. + - ODBC: Fixed possible cause of spurious errors (commit af35ee291a1bbbc8) Changes in Qt 5.2.0 -- [QTBUG-29261] IBASE: Construct a valid QTime when creating timestamps for iBase SQL driver. -- [QTBUG-33389] PSQL: Format QDateTime following ISO8601. -- Add QSQLITE_OPEN_URI option to QSQLITE driver + - [QTBUG-29261] IBASE: Construct a valid QTime when creating timestamps for + iBase SQL driver. + - [QTBUG-33389] PSQL: Format QDateTime following ISO8601. + - Add QSQLITE_OPEN_URI option to QSQLITE driver + +QtWidgets +--------- + + - QFileDialog::setDefaultSuffix() removes leading dot characters. + - QSizePolicy got a retainSizeWhenHidden attribute. + - [QTBUG-31602] QSpinBox size calculation will now be fixed when + stylesheets are used. + + - QAbstractItemView: + * [QTBUG-7232] QTBUG-7232 - In ItemViews scrollbars will now by default + only scroll 1 pixel when scrollMode is set to scrollPerPixel. That is + it will (when scrollMode is scrollPerPixel) do what is stated in the + documentation, and no longer automatically adjust the scrollbars + singleStep. The user can now control that value. + + - QAbstractScrollArea: + * QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to + AdjustToContents it will make use of the protected viewportSizeHint() + virtual function. This function returns a suggested size based on + contents. Note that although the viewportSizeHint() virtual function + was reserved in 5.0, user code was not supposed to be overriding it + (as the function was private and undocumented). Code that was + overriding viewportSizeHint() needs to be recompiled against 5.2 for + this feature to work correctly. + + - QHeaderView: + * [QTBUG-4346] A maximumSize for sections has been introduced. The + maximum section size is by default the largest possible section size + which in Qt 5.2 has been limited to 1048575 pixels. + + - QFileDialog: + * [QTBUG-34132] QFileDialog does not instantiate widgets if a native + dialog will be used instead. Therefore some accessors which previously + returned unused objects will now return null. As before, you can set + the DontUseNativeDialog option to ensure that widgets will be created + and used instead. + + - QListView: + * [QTBUG-1180] Dragging an item outside the QListView in icon mode + doesn't lose the icon. + + - QTableView: + * [QTBUG-4206] resizeToContents will now adjust to actual contents + and not just visible area. QHeaderView::setAutoResizePrecision() + has been introduced to control how precise the autoResize should + be. + + - QTreeView: + * QTreeView now has setTreePosition to allow the treestructure to + show data from other columns than logicalindex zero. + **************************************************************************** * Platform Specific Changes * @@ -168,6 +291,7 @@ Qt for Windows Qt for Android -------------- + - Project structure and deployment has changed with the introduction of androiddeployqt. Source and build files are no longer mixed, and the build files for the APK package should not be touched. Customizing @@ -178,3 +302,9 @@ Qt for Android override settings in the AndroidManifest.xml. The default is still to show the status bar (QWindow::showMaximized()). Use QWindow::showFullScreen() to hide it. + +Windows +------- + + - [QTBUG-33409][QTBUG-8764][QTBUG-10032] Fixed virtual key mapping on + Windows. -- cgit v1.2.3 From 1f1047686632c98706c9fe8e0de43d4e741b2fd7 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 23 Nov 2013 22:03:50 +0100 Subject: Update ChangeLog for 5.2.0 [QtWidgets] First batch of changes applied to src/widgets since v5.1.0. Change-Id: I23515e8dd340f8551d1681d0abeb2cbbff3683d7 Reviewed-by: Friedemann Kleint Reviewed-by: Giuseppe D'Angelo Reviewed-by: Lars Knoll Reviewed-by: Thiago Macieira --- dist/changes-5.2.0 | 186 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 158 insertions(+), 28 deletions(-) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 09888a353c..3ea1174316 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -147,8 +147,15 @@ QtDeclarative - ColorDialog: * Added currentColor property. + - [QTBUG-32928] ShortcutOverride events now work for QQuickItem + subclasses + QtGui ----- + + - Accessibility classes are now public allowing accessibility + information for custom widgets/QQuickItems + - Session Management: * [QTBUG-28228] The new QPlatformSessionManager class brings back the session management functionality. It allows the @@ -161,6 +168,9 @@ QtGui * When a QVariant holds a QPolygonF() then it will be correctly seen as a null QVariant. + - [QTBUG-27349] Reintroduced command line argument for positioning + windows (-geometry on X11, -qwindowgeometry on other platforms) + QtNetwork --------- @@ -228,43 +238,147 @@ Changes in Qt 5.2.0 QtWidgets --------- - - QFileDialog::setDefaultSuffix() removes leading dot characters. - - QSizePolicy got a retainSizeWhenHidden attribute. - - [QTBUG-31602] QSpinBox size calculation will now be fixed when - stylesheets are used. + - [QTBUG-30255] Fixed a bug where spans across empty cells in a grid + layout got broken. + - [QTBUG-32788] Properly handles Qt::WidgetWithChildrenShortcut + shortcuts in MDI subwindows now. + - [QTBUG-33078] QWidget::setWindowOpacity() now works when called + before QWidget::show(). + - [QTBUG-33247] Changed accessible trees and tables to always expose + hidden headers, instead of only exposing the visible headers. + - [QTBUG-34007] Fixed a crash in tablet support. + - Fixed a bug where the maximum size hint of a layout with spans was + wrong. + - Item delegates now cycle through all three states of tri-state + checkboxes, the same way QCheckBox itself does. - QAbstractItemView: - * [QTBUG-7232] QTBUG-7232 - In ItemViews scrollbars will now by default - only scroll 1 pixel when scrollMode is set to scrollPerPixel. That is - it will (when scrollMode is scrollPerPixel) do what is stated in the - documentation, and no longer automatically adjust the scrollbars - singleStep. The user can now control that value. - - - QAbstractScrollArea: - * QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to - AdjustToContents it will make use of the protected viewportSizeHint() - virtual function. This function returns a suggested size based on - contents. Note that although the viewportSizeHint() virtual function - was reserved in 5.0, user code was not supposed to be overriding it - (as the function was private and undocumented). Code that was - overriding viewportSizeHint() needs to be recompiled against 5.2 for - this feature to work correctly. + * [QTBUG-7232] In ItemViews scrollbars will now by default only + scroll 1 pixel when scrollMode is set to scrollPerPixel. That is + it will (when scrollMode is scrollPerPixel) do what is stated in + the documentation, and no longer automatically adjust the + scrollbar's singleStep. The user can now control that value. + + - QAbstractScrollArea: + * QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to + AdjustToContents it will make use of the protected viewportSizeHint() + virtual function. This function returns a suggested size based on + contents. Note that although the viewportSizeHint() virtual function + was reserved in 5.0, user code was not supposed to be overriding it + (as the function was private and undocumented). Code that was + overriding viewportSizeHint() needs to be recompiled against 5.2 for + this feature to work correctly. + + - QColorDialog: + * Added a web color QLineEdit. + * [QTBUG-14332] Added a screen color picker button. + * [QTBUG-31998] Does no longer create widgets when using the + platform dialog. + + - QComboBox: + * Added currentData() convenience function which allows to retrieve + the user data set for the current item. + + - QCompleter: + * [QTBUG-3414] Added filterMode property. + + - QDesktopWidget: + * [QTBUG-32567] Fixed emission of workAreaResized() signal. + + - QDialogButtonBox: + * Added a (StandardButtons,QWidget*) constructor. + + - QDockWidget: + * [QTBUG-31044] The position of a dock widget is now kept when + undocking. + * [QTBUG-32260] Fixed a bug where visibilityChanged was signaled + wrongly in certain multi-screen setups. + + - QFileDialog: + * setDefaultSuffix() now removes leading dot characters. + * Introduced DontUseCustomDirectoryIcons. This improves the file + dialog performance under Windows for the case where there are + lots of folders. Went from taking 60 seconds to 2 seconds, on a + SDCard with 10k folders. + * Added setMimeTypeFilters() for mimetype-based filtering, as an + alternative to pattern matching. + * Fixed removing of directories containing hidden or system files. + * Added QUrl-based API for remote files. + * [QTBUG-13182] Improved performance on Windows by + + not resolving NTFS symlinks (15x speedup on pessimistic + workloads) and + + using extensions over calling GetFileAttributesEx() in certain + cases. + * [QTBUG-29403] Fixed potential crash in destructor of + ~QFileInfoGather in threaded applications. + * [QTBUG-34132] QFileDialog does no longer instantiate widgets if a + native dialog will be used instead. Therefore some accessors + which previously returned unused objects will now return null. + As before, you can set the DontUseNativeDialog option to ensure + that widgets will be created and used instead. + * [QTBUG-33039] Does no longer create widgets when using the + platform dialog. + + - QFontDialog: + * Now has finer-grained control over the types of fonts listed, + similar to what QFontComboBox already had. + + - QGraphicsView etc + * Fixed a crash in QGraphicsProxyWidget. + * [QTBUG-8061] Allow handling of mouseDoubleClickEvent in + QGraphicsItems. + * [QTBUG-19036] Make QGraphicsScene::items(QPointF) work using + Qt::{Contains,Intersets}ItemBoundingRect with items that contain + the point in the bounding rectangle, but not their (custom) + shape. - QHeaderView: * [QTBUG-4346] A maximumSize for sections has been introduced. The - maximum section size is by default the largest possible section size - which in Qt 5.2 has been limited to 1048575 pixels. + maximum section size is by default the largest possible section + size which in Qt 5.2 has been limited to 1048575 pixels. - - QFileDialog: - * [QTBUG-34132] QFileDialog does not instantiate widgets if a native - dialog will be used instead. Therefore some accessors which previously - returned unused objects will now return null. As before, you can set - the DontUseNativeDialog option to ensure that widgets will be created - and used instead. + - QInputDialog: + * Added getMultiLineText static method. + + - QLineEdit: + * Keep placeholderText visible when focused, until text is added. + * Context-menu actions now have icons. + * Made it possible to add side widgets. + * Made it possible to add a clear button commonly used for item + view filtering as a side widget - QListView: * [QTBUG-1180] Dragging an item outside the QListView in icon mode - doesn't lose the icon. + no longer loses the icon. Also fixed a bug where under certain + conditions code overriding QAbstractItemView::viewOptions() would + not be called. + + - QMenuBar: + * [QTBUG-32807] Menus now close again on second click. + + - QMessageBox: + * May use native message boxes on some platforms now. + * [QTBUG-6731] It is now possible to select some or all text from a + QMessageBox and copy it to the clipboard. + + - QSizePolicy: + * Added a retainSizeWhenHidden attribute. + + - QSpinBox: + * Values can now be displayed in different bases + (cf. displayIntegerBase property) + * [QTBUG-31602] Size calculation will now be fixed when stylesheets + are used. + + - QSplitter: + * Now gets the default value of opaqueResize property from (new) + QStyle::SH_Splitter_OpaqueResize styleHint. + + - QSystemTrayIcon: + * [QTBUG-31762] Fixed position of system tray icon on Linux/X11 + (except Unity). + * [QTBUG-33461] Increased the maximum length of a system tray + tooltip on Windows to what it was in Qt 4. - QTableView: * [QTBUG-4206] resizeToContents will now adjust to actual contents @@ -272,10 +386,19 @@ QtWidgets has been introduced to control how precise the autoResize should be. + - QTextEdit: + * Added placeholderText akin to QLineEdit. + * Context-menu actions now have icons. + - QTreeView: * QTreeView now has setTreePosition to allow the treestructure to show data from other columns than logicalindex zero. + - QWindowContainer: + * [QTBUG-32177] Sets active window correctly now. + + - QWizard: + * [QTBUG-29924] Gave all buttons an objectName(). **************************************************************************** * Platform Specific Changes * @@ -308,3 +431,10 @@ Windows - [QTBUG-33409][QTBUG-8764][QTBUG-10032] Fixed virtual key mapping on Windows. + +X11 +--- + + - [QTBUG-31762] Fix position of system tray icon (except Unity) + - [QTBUG-27349] Reintroduced command line argument for positioning + windows (-geometry) -- cgit v1.2.3 From e8f9533d4d07589302fd6d4a92cfd6453d236d14 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 25 Nov 2013 11:32:52 -0800 Subject: Update ChangeLog for 5.2.0 [QtCore] Change-Id: I2f6adc13d454825a2f444121a87dfd189e1c70f9 Reviewed-by: Lars Knoll --- dist/changes-5.2.0 | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 126 insertions(+), 3 deletions(-) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 3ea1174316..934782bd61 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -55,6 +55,31 @@ information about a particular change. QtCore ------ + - Added QCollator, a class to collate Unicode strings. + - Added QCommandLineParser, a class to parse command lines. + - Added QFileSelector, a class to select platform-specific file assets. + - Added QLoggingCategory and related functions for logging + - [QTBUG-23946] Fixed a bug that prevented Qt from being built in a + namespace on Mac OS X. + - Updated the locale database to CLDR 23.1 + - Added support for ARMv8 64-bit mode. + + - Metatype system (QMetaType & QVariant): + * Qt now handles metatypes automatically for std::vector, std::list, + std::pair and std::map + * The metatype system now supports registering explicit conversion + functions via QMetaType::registerConverter + * The metatype system now supports iteration over a container type via + QSequentialIterable and QAssociativeIterable + * Registering the same type name twice will now print only a warning (as + opposed to aborting the execution of the program) + + - Qt Containers: + * In debug mode, the Qt containers will now verify whether the iterators + passed to most mutating functions belong to the iterator in question. + * Fixed a number of bugs that would modify shared containers when calling + erase(), under corner-case conditions. + - QtAlgorithms With STL no longer being optional for building and using Qt, a number of parts of QtAlgorithms no longer make sense, and have therefore been deprecated. @@ -84,6 +109,16 @@ QtCore - qLess (std::less) - qGreater (std::greater) + - QByteArray: + * Added QByteArray::Base64Url and QByteArray::OmitTrailingEquals flags + for QByteArray::toBase64 and fromBase64. + * [QTBUG-34694] Fixed a bug that would cause QByteArray to overflow some + size calculations. + + - QCoreApplication: + * [QTBUG-15379][QTBUG-30628] Fixed a bug that caused Qt to mis-parse a + command-line argument like -DKEY=\"VALUE\" on Windows. + - QDateTime: * [QTBUG-26161][QTBUG-29666] Fully implement support for Qt::TimeSpec of Qt::OffsetFromUTC, added new methods for offsetFromUTC(), @@ -100,19 +135,79 @@ QtCore hour. * Added new method isDaylightTime() to return if the datetime is in Daylight Time or not. - * Add support for a new Qt::TimeZone spec to be used with QTimeZone to + * Added support for a new Qt::TimeZone spec to be used with QTimeZone to define times in a specific time zone. + * Added Qt::RFC2822Date format that can be passed to QDateTime and + QLocale formatters and parsers. + * Fixed a bug that caused QDate::toString() to return empty for dates + with years beyond 9999. + + - QFileSystemWatcher: + * [QTBUG-33211] Fixed a bug that caused QFileSystemWatcher to emit change + notifications with the wrong path on Linux. - QJson: * [QTBUG-33229] The Writer and the Parser now fully accept non-character unicode points. + * The Writer will no longer write inf, -inf and nan for infinites and NaN + values, which resulted in parsing back as strings. Instead, it will now + output null. + * The Writer now emits numeric values with full numeric precision. This + also allows QJson to support integer values with no loss of precision + up to 2^53. - QJsonValue: - * Added QJsonValue::toInt(). + * Added QJsonValue::toInt(). QJsonValue can store 32-bit signed integers + with no loss of precision. + + - QObject: + * New-style signal connections to functors, lambdas, and static functions + now works with a receiver object. The connection will be removed when + the either the sender or receiver objects are destroyed. + + - QPluginLoader: + * QPluginLoader will no longer load the plugins on Mac OS X and iOS + systems when scanning for valid plugins. + * Added QPluginLoader::staticPlugins(), which returns the list of + built-in plugins (linked to the executable and any loaded libraries). + + - QProcess: + * [QTBUG-32958] Fixed a bug that would cause QProcess to crash if + waitForStarted() were called after an unsuccessful start() + * Added QProcess::nullDevice(), which returns the platform's "blackhole" + device (/dev/null on Unix, NUL on Windows). This can be used with + QProcess::setStandardOutputFile. + * Added enum values QProcess::ForwardedOutputChannel and + QProcess::ForwardedErrorChannel, which allow for more fine-grained + control over which channel is forwarded and which one is captured. + * Added QProcess::ForwardedInputChannel, which allows for stdin to be + forwarded to this process's input. + * [QTBUG-32979] On Unix, QProcess now correctly forwards the siginfo_t + and context parameters of the signal handler to the previous handler. + + - QScopedPointer: + * Added QScopedPointerDeleteLater, a new class that can be used as the + second template to QScopedPointer and will call deleteLater() on the + pointer when it goes out of scope. + + - QSocketNotifier: + * Fixed a bug that caused socket notifiers not to be re-enabled after + they had been activated on BlackBerry. - QStandardPaths: * QStandardPaths::enableTestMode is deprecated and is replaced by QStandardPaths::setTestModeEnabled. + * Added QStandardPaths::GenericConfigLocation, which refers to a location + where applications can store config files to be shared with other + applications. + + - QThread: + * Added an advisory interrupt mechanism (QThread::requestInterruption and + QThread::isInterruptionRequested). + + - QThreadPool: + * Added method clear() to remove any queued QRunnables. + * Fixed a number of race conditions. - QTime: * [QTBUG-30250] When calling QTime::toString(Qt::TextDate) and @@ -132,6 +227,18 @@ QtCore * [QTBUG-33229] QUrl now fully accepts non-character unicode points; they are encoded as percent characters; they can also be pretty decoded + * Added QUrl::RemoveFilename flag which can be passed to path(), + authority() and toString() and will cause the filename part of the path + (the contents after the last '/') to be removed. + * Added QUrl::fileName(), which returns just the filename part of the + path. + * Added QUrl::NormalizePathSegments flag, which will cause QUrl to + remove "/./" or "/../" sequences as much as possible. It will not + remove "/../" from the beginning of the path. + * Added QUrl::adjusted(), which returns a new QUrl with certain parts of + the original URL removed or normalized. + * Added QUrl::matches(), which can be used to compare parts of two URLs + or to compare two URLs after normalization. - QUtf8: * [QTBUG-33229] UTF-8 now accepts non-character unicode points; these @@ -140,6 +247,8 @@ QtCore - QVariant: * Fixed QVariant::canConvert with longlong * Variant containing enum types can now be converted to integer + * [QTBUG-33981] Fixed a bug that would cause QPolygonF to be saved or + loaded incorrectly in QDataStream. QtDeclarative ------------- @@ -420,11 +529,25 @@ Qt for Android build files for the APK package should not be touched. Customizing the build files is possible. Read the documentation for androiddeployqt for more information. - - Status bar visibility is now controlled by Qt, so the window state will override settings in the AndroidManifest.xml. The default is still to show the status bar (QWindow::showMaximized()). Use QWindow::showFullScreen() to hide it. + - Implemented support for accessibility on Android. + +Qt for OS X +----------- + + - Qt for OS X is now identified by the macro Q_OS_OSX. This complements the + existing Q_OS_DARWIN macro (which identifies the open source kernel and + could identify non-Apple products) and Q_OS_MAC, which is defined for + both OS X and iOS. The old macro Q_OS_MACX is now deprecated. + - Qt no longer complains about new versions of OS X that haven't been + released yet. This will allow Qt 5.2 and future versions to build on + future versions yet to be released. Note that those versions are not + supported until official announcement by the Qt Project. + - Added a number of functions to QtCore to convert to and from + CFString/NSString and QString, CFURL/NSURL and QUrl. Windows ------- -- cgit v1.2.3 From c9857bdeef05fe48ac4491ff49cd391662e2bbea Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 25 Nov 2013 11:47:39 -0800 Subject: Update ChangeLog for 5.2.0 [QtDBus] Change-Id: I8b58ea636eac2be4da967c18057c38990bc9178f Reviewed-by: Lars Knoll --- dist/changes-5.2.0 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 934782bd61..9eea4dc2b4 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -250,6 +250,16 @@ QtCore * [QTBUG-33981] Fixed a bug that would cause QPolygonF to be saved or loaded incorrectly in QDataStream. +QtDBus +------ + + - Improved error handling so as to give more feedback to the developer when + certain marshalling or demarshalling actions fail. + - [QTBUG-27809] Fixed some race conditions related to delivering method + reply deliveries. + - Fixed a bug that made non-slot invokables not get listed in the + auto-generated introspections. + QtDeclarative ------------- -- cgit v1.2.3 From 10ac0bb2b8619d2f81731f617b40767fed4619fd Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 25 Nov 2013 11:50:41 -0800 Subject: Reflow the ChangeLog part for QtNetwork Wrap to column 76, add a space before the dash and remove the line between entries with no sub-bullets. Change-Id: Ibba86161659ccad9fe98dd37a9eba57e807aa3ac Reviewed-by: Lars Knoll --- dist/changes-5.2.0 | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 9eea4dc2b4..ce2ae63dbb 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -293,21 +293,17 @@ QtGui QtNetwork --------- -- API was added to store and resume TLS session tickets. - -- The minimum support openssl version has been increased to openssl 1.0. The - code to support older versions has not been removed, but is no longer - supported. - -- An off-by-one error in NTLM proxy authentication has been fixed. - -- Various improvements to reduce the memory used by qtnetwork have been made. - -- Improved support for HTTP proxy authentication. - -- Support for preconnecting to servers before making HTTP and HTTPS - connections. This allows for much reduced latency when the hosts to be - connected to are known. + - API was added to store and resume TLS session tickets. + - The minimum support openssl version has been increased to openssl + 1.0. The code to support older versions has not been removed, but is no + longer supported. + - An off-by-one error in NTLM proxy authentication has been fixed. + - Various improvements to reduce the memory used by qtnetwork have been + made. + - Improved support for HTTP proxy authentication. + - Support for preconnecting to servers before making HTTP and HTTPS + connections. This allows for much reduced latency when the hosts to be + connected to are known. QtPrintSupport -------------- -- cgit v1.2.3 From df449d4f86b152ff471e6fa4cc11182fa409bc0d Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 25 Nov 2013 11:51:36 -0800 Subject: Fix formatting in the platform-specific changes part of the ChangeLog No need to have the "Qt for" part of the platform. This was used back in the Qt 4 days when we referred to "Qt for Embedded Linux" or "QtopiaCore" before that. This also fixes the duplicated "Windows" and "Qt for Windows" sections. Change-Id: Ia04172d0f322079f667b64a90c5f23d03588d0db Reviewed-by: Lars Knoll --- dist/changes-5.2.0 | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index ce2ae63dbb..f513d64626 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -520,15 +520,8 @@ QtWidgets **************************************************************************** -Qt for Windows --------------- - - QCoreApplication::arguments() changed the handling of single quotes, double quotes - and the backslash character, in order to match what argv[] contains. - In particular, single quotes are no longer removed from the argument string. - (QTBUG-15379, QTBUG-30628) - -Qt for Android --------------- +Android +------- - Project structure and deployment has changed with the introduction of androiddeployqt. Source and build files are no longer mixed, and the @@ -541,8 +534,8 @@ Qt for Android QWindow::showFullScreen() to hide it. - Implemented support for accessibility on Android. -Qt for OS X ------------ +OS X +---- - Qt for OS X is now identified by the macro Q_OS_OSX. This complements the existing Q_OS_DARWIN macro (which identifies the open source kernel and @@ -560,6 +553,10 @@ Windows - [QTBUG-33409][QTBUG-8764][QTBUG-10032] Fixed virtual key mapping on Windows. + - QCoreApplication::arguments() changed the handling of single quotes, double quotes + and the backslash character, in order to match what argv[] contains. + In particular, single quotes are no longer removed from the argument string. + (QTBUG-15379, QTBUG-30628) X11 --- -- cgit v1.2.3