summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-27 03:01:14 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-27 03:01:14 +0200
commitd2a661f16e9982c45260efb9875b83c581b82287 (patch)
tree3a5f52f5509617c7e55788dd443bb8645a6adc37
parentbdff4debf5f3f8125e3b7876bb5c62bc4251727f (diff)
parent44fe49e573539e22709c2d5c996f1ca9ee8fd760 (diff)
downloadqtquickcontrols-d2a661f16e9982c45260efb9875b83c581b82287.tar.gz
Merge remote-tracking branch 'origin/5.13' into dev
Change-Id: I1eda6648cc10fd5e0d5148fd357ebb04135acc68
-rw-r--r--dist/changes-5.12.334
-rw-r--r--src/dialogs/plugin.cpp10
-rw-r--r--src/dialogs/qquickabstractdialog.cpp6
-rw-r--r--src/dialogs/qquickabstractdialog_p.h3
4 files changed, 42 insertions, 11 deletions
diff --git a/dist/changes-5.12.3 b/dist/changes-5.12.3
new file mode 100644
index 00000000..22279541
--- /dev/null
+++ b/dist/changes-5.12.3
@@ -0,0 +1,34 @@
+Qt 5.12.3 is a bug-fix release. It maintains both forward and backward
+compatibility (source and binary) with Qt 5.12.0 through 5.12.2.
+
+For more details, refer to the online documentation included in this
+distribution. The documentation is also available online:
+
+ https://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 *
+****************************************************************************
+
+ - [QTBUG-74350] Dialog: Update the title on the window when changing it on
+ the dialog.
+ - [QTBUG-73691] ScrollViewStyle: fixed division by zero in extent
+ computation.
+ - [QTBUG-73765] Calendar: CalendarHeaderModel is now updated when changing
+ the locale.
+ - [QTBUG-65209] Fixed progress indicator with vertical progress bar.
+ - [QTBUG-69041] Fixed incorrect transientScrollBars binding in
+ BasicTableView.
+ - [QTBUG-71997] Calendar: fix dates being disabled if time component is
+ specified for the minimum or maximum date.
diff --git a/src/dialogs/plugin.cpp b/src/dialogs/plugin.cpp
index 8c10786f..b31d233e 100644
--- a/src/dialogs/plugin.cpp
+++ b/src/dialogs/plugin.cpp
@@ -40,6 +40,7 @@
#include <QtQml/qqml.h>
#include <QtQml/qqmlextensionplugin.h>
#include <QtQml/qqmlcomponent.h>
+#include <QtQml/qqmlengine.h>
#include "qquickmessagedialog_p.h"
#include "qquickabstractmessagedialog_p.h"
#include "qquickdialogassets_p.h"
@@ -87,12 +88,6 @@ class QtQuick2DialogsPlugin : public QQmlExtensionPlugin
public:
QtQuick2DialogsPlugin() : QQmlExtensionPlugin(), m_useResources(true) { }
- virtual void initializeEngine(QQmlEngine *engine, const char * uri) {
- qCDebug(lcRegistration) << uri << m_decorationComponentUrl;
- QQuickAbstractDialog::m_decorationComponent =
- new QQmlComponent(engine, m_decorationComponentUrl, QQmlComponent::Asynchronous);
- }
-
virtual void registerTypes(const char *uri) {
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtQuick.Dialogs"));
bool hasTopLevelWindows = QGuiApplicationPrivate::platformIntegration()->
@@ -114,7 +109,7 @@ public:
m_useResources = false;
#endif
#endif
- m_decorationComponentUrl = m_useResources ?
+ QQuickAbstractDialog::m_decorationComponentUrl = m_useResources ?
QUrl("qrc:/QtQuick/Dialogs/qml/DefaultWindowDecoration.qml") :
#ifndef QT_STATIC
QUrl::fromLocalFile(qmlDir.filePath(QString("qml/DefaultWindowDecoration.qml")));
@@ -256,7 +251,6 @@ protected:
qmlRegisterType(dialogQmlPath, uri, versionMajor, versionMinor, qmlName);
}
- QUrl m_decorationComponentUrl;
bool m_useResources;
};
diff --git a/src/dialogs/qquickabstractdialog.cpp b/src/dialogs/qquickabstractdialog.cpp
index e00c17a1..e71948d1 100644
--- a/src/dialogs/qquickabstractdialog.cpp
+++ b/src/dialogs/qquickabstractdialog.cpp
@@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE
Q_LOGGING_CATEGORY(lcWindow, "qt.quick.dialogs.window")
-QQmlComponent *QQuickAbstractDialog::m_decorationComponent(0);
+QUrl QQuickAbstractDialog::m_decorationComponentUrl = QUrl();
QQuickAbstractDialog::QQuickAbstractDialog(QObject *parent)
: QObject(parent)
@@ -151,6 +151,8 @@ void QQuickAbstractDialog::setVisible(bool v)
// If the platform does not support multiple windows, but the dialog is
// implemented as an Item, then try to decorate it as a fake window and make it visible.
if (!m_windowDecoration) {
+ if (!m_decorationComponent)
+ m_decorationComponent = new QQmlComponent(qmlEngine(this), m_decorationComponentUrl, QQmlComponent::Asynchronous, this);
if (m_decorationComponent) {
if (m_decorationComponent->isLoading())
connect(m_decorationComponent, SIGNAL(statusChanged(QQmlComponent::Status)),
@@ -232,7 +234,7 @@ void QQuickAbstractDialog::decorationLoaded()
"cannot be used as a window decoration because it's not an Item";
delete decoration;
delete m_decorationComponent;
- m_decorationComponent = 0;
+ m_decorationComponent = nullptr;
}
}
// Window decoration wasn't possible, so just reparent it into the scene
diff --git a/src/dialogs/qquickabstractdialog_p.h b/src/dialogs/qquickabstractdialog_p.h
index 54dbaace..a861739b 100644
--- a/src/dialogs/qquickabstractdialog_p.h
+++ b/src/dialogs/qquickabstractdialog_p.h
@@ -167,7 +167,8 @@ protected: // variables and methods for pure-QML implementations only
bool m_visibleChangedConnected;
bool m_dialogHelperInUse;
- static QQmlComponent *m_decorationComponent;
+ QQmlComponent *m_decorationComponent = nullptr;
+ static QUrl m_decorationComponentUrl;
friend class QtQuick2DialogsPlugin;