summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-12-14 03:01:06 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-12-14 03:01:06 +0100
commit8c31769dbb1cfa93416260c2ddcd712587187c80 (patch)
tree733471de63e165b8737343b80fa0b6987bcc5a53
parentb9251c72a19d67c89a8fe8ee8799e59f7f79c5cc (diff)
parent6d59f9d6d1aab4f22002f9143088c2c6b3023ebf (diff)
downloadqtquickcontrols-8c31769dbb1cfa93416260c2ddcd712587187c80.tar.gz
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I87e8f3e363c7514b0cd9004b848ee0ca607548a6
-rw-r--r--src/controls/doc/qtquickcontrols1.qdocconf2
-rw-r--r--src/controls/doc/src/qtquickcontrols-examples.qdoc23
-rw-r--r--src/controls/doc/src/qtquickcontrols-index.qdoc2
-rw-r--r--src/controls/doc/src/qtquickcontrols-overview.qdoc2
-rw-r--r--src/controls/doc/src/qtquickcontrols-platformnotes.qdoc2
-rw-r--r--src/controls/doc/src/qtquickcontrols.qdoc2
-rw-r--r--src/controls/doc/src/qtquickcontrolsstyles-index.qdoc4
-rw-r--r--tests/auto/dialogs/tst_dialogs.cpp8
8 files changed, 41 insertions, 4 deletions
diff --git a/src/controls/doc/qtquickcontrols1.qdocconf b/src/controls/doc/qtquickcontrols1.qdocconf
index 1a795dd1..7837fa3f 100644
--- a/src/controls/doc/qtquickcontrols1.qdocconf
+++ b/src/controls/doc/qtquickcontrols1.qdocconf
@@ -81,3 +81,5 @@ navigation.landingpage = "Qt Quick Controls 1"
navigation.qmltypespage = "Qt Quick Controls 1 QML Types"
tagfile = qtquickcontrols1.tags
+
+macro.deprecationwarning = "\\warning The Qt Quick Controls 1 module is deprecated since Qt 5.12. Use the latest \\l{Qt Quick Controls} module instead."
diff --git a/src/controls/doc/src/qtquickcontrols-examples.qdoc b/src/controls/doc/src/qtquickcontrols-examples.qdoc
index b6f2dca0..15498647 100644
--- a/src/controls/doc/src/qtquickcontrols-examples.qdoc
+++ b/src/controls/doc/src/qtquickcontrols-examples.qdoc
@@ -31,6 +31,8 @@
\title Qt Quick Controls 1 Examples
\brief A Collection of examples for \l{Qt Quick Controls 1}, written in QML.
+ \deprecationwarning
+
These examples show how to create user interfaces using
\l{Qt Quick Controls 1}.
*/
@@ -41,6 +43,8 @@
\ingroup qtquickcontrols_examples
\brief A collection of components for a classic desktop-style UI.
+ \deprecationwarning
+
\raw HTML
<div class="table"><table style="background:transparent; border:0px">
<tr><td style="border:0px">
@@ -69,6 +73,8 @@
\ingroup qtquickcontrols_examples
\brief Demonstrates how to separate the application logic from the UI.
+ \deprecationwarning
+
\image qtquickcontrols-example-uiforms.png
\e{UI Forms} demonstrates how to separate the application logic
@@ -129,6 +135,9 @@
\title Qt Quick Controls 1 - Table View Example
\ingroup qtquickcontrols_examples
\brief An example for the TableView control.
+
+ \deprecationwarning
+
\image qtquickcontrols-example-tableview.png
This example project demonstrates the usage of \l {TableView} from
@@ -170,6 +179,8 @@
\brief A QML app using Qt Quick Controls and a C++ class to
provide a fully-functional rich-text editor application.
+ \deprecationwarning
+
\image qtquickcontrols-example-text.png
The \e{Text Editor Example} presents a sample HTML file using the TextArea
@@ -209,6 +220,9 @@
\title Qt Quick Controls 1 - Touch Gallery
\ingroup qtquickcontrols_examples
\brief Demonstrates UI controls for a touch interface.
+
+ \deprecationwarning
+
\image qtquickcontrols-example-touch.png
\e {Touch Gallery} demonstrates how to implement a UI suitable for touch
@@ -455,6 +469,9 @@
\title Qt Quick Controls 1 - Calendar Example
\ingroup qtquickcontrols_examples
\brief Demonstrates the use of Calendar control.
+
+ \deprecationwarning
+
\image qtquickcontrols-example-calendar.png
The Calendar example displays a Calendar control and an events list for
@@ -543,6 +560,9 @@
\title Qt Quick Controls 1 - Styles Example
\ingroup qtquickcontrols_examples
\brief Demonstrates custom styles.
+
+ \deprecationwarning
+
\image qtquickcontrols-example-styles.png
This example shows how to create custom styles for \l{Qt Quick Controls 1}.
@@ -555,6 +575,9 @@
\title Qt Quick Controls 1 - File System Browser Example
\ingroup qtquickcontrols_examples
\brief An example for the TreeView control.
+
+ \deprecationwarning
+
\image qtquickcontrols-example-filesystembrowser.png
This example project demonstrates the usage of \l {TreeView} from
diff --git a/src/controls/doc/src/qtquickcontrols-index.qdoc b/src/controls/doc/src/qtquickcontrols-index.qdoc
index 727be41e..5c7e3299 100644
--- a/src/controls/doc/src/qtquickcontrols-index.qdoc
+++ b/src/controls/doc/src/qtquickcontrols-index.qdoc
@@ -31,6 +31,8 @@
\brief The Qt Quick Controls module provides a set of UI controls for Qt Quick.
+ \deprecationwarning
+
The Qt Quick Controls module provides a set of controls that can be used to
build complete interfaces in Qt Quick.
diff --git a/src/controls/doc/src/qtquickcontrols-overview.qdoc b/src/controls/doc/src/qtquickcontrols-overview.qdoc
index dddec50b..f9acf353 100644
--- a/src/controls/doc/src/qtquickcontrols-overview.qdoc
+++ b/src/controls/doc/src/qtquickcontrols-overview.qdoc
@@ -30,6 +30,8 @@
\title Qt Quick Controls 1 Overview
\brief A set of UI controls to create user interfaces in Qt Quick
+ \deprecationwarning
+
The Qt Quick Controls provide a set of UI controls to create user interfaces
in Qt Quick.
diff --git a/src/controls/doc/src/qtquickcontrols-platformnotes.qdoc b/src/controls/doc/src/qtquickcontrols-platformnotes.qdoc
index 60d5e797..f1739aa9 100644
--- a/src/controls/doc/src/qtquickcontrols-platformnotes.qdoc
+++ b/src/controls/doc/src/qtquickcontrols-platformnotes.qdoc
@@ -30,6 +30,8 @@
\title Qt Quick Controls 1 Platform Notes
\brief Platform specific notes for Qt Quick Controls.
+ \deprecationwarning
+
This page contains platform specific notes for creating applications
that use \l{Qt Quick Controls 1}.
diff --git a/src/controls/doc/src/qtquickcontrols.qdoc b/src/controls/doc/src/qtquickcontrols.qdoc
index a57521d1..92606e47 100644
--- a/src/controls/doc/src/qtquickcontrols.qdoc
+++ b/src/controls/doc/src/qtquickcontrols.qdoc
@@ -31,6 +31,8 @@
\ingroup qmlmodules
\brief Provides QML types for user interfaces.
+ \deprecationwarning
+
The \l{Qt Quick Controls 1} module provides QML types for creating user
interfaces. These QML types work in conjunction with \l{Qt Quick} and
\l{Qt Quick Layouts}.
diff --git a/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc b/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
index dfe8f4d0..9333ee27 100644
--- a/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
+++ b/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
@@ -60,6 +60,8 @@
\title Qt Quick Controls 1 Styles
\brief The Qt Quick Controls Styles submodule provides custom styles for Qt Quick Controls.
+ \deprecation-warning
+
The Qt Quick Controls Styles submodule allows custom styling for \l {Qt Quick Controls 1}.
The submodule was introduced in Qt 5.1.
@@ -130,6 +132,8 @@
\ingroup qmlmodules
\brief Provides QML types for Qt Quick Controls styles.
+ \deprecation-warning
+
The \l{Qt Quick Controls 1} module provides a set of QML types for handling
styles.
diff --git a/tests/auto/dialogs/tst_dialogs.cpp b/tests/auto/dialogs/tst_dialogs.cpp
index 2ee81c9b..a9c9b5e6 100644
--- a/tests/auto/dialogs/tst_dialogs.cpp
+++ b/tests/auto/dialogs/tst_dialogs.cpp
@@ -268,11 +268,11 @@ void tst_dialogs::fileDialogDefaultModality()
// Click to show
QObject *dlg = qvariant_cast<QObject *>(window->rootObject()->property("fileDialog"));
QSignalSpy spyVisibilityChanged(dlg, SIGNAL(visibilityChanged()));
- QTest::mouseClick(window, Qt::LeftButton, 0, QPoint(1000, 100)); // show
+ QTest::mouseClick(window, Qt::LeftButton, {}, QPoint(1000, 100)); // show
QTRY_VERIFY(spyVisibilityChanged.count() > 0);
int visibilityChangedCount = spyVisibilityChanged.count();
// Can't hide by clicking the main window, because dialog is modal.
- QTest::mouseClick(window, Qt::LeftButton, 0, QPoint(1000, 100));
+ QTest::mouseClick(window, Qt::LeftButton, {}, QPoint(1000, 100));
/*
On OS X, if you send an event directly to a window, the modal dialog
doesn't block the event, so the window will process it normally. This
@@ -315,11 +315,11 @@ void tst_dialogs::fileDialogNonModal()
QObject *dlg = qvariant_cast<QObject *>(window->rootObject()->property("fileDialog"));
dlg->setProperty("modality", QVariant((int)Qt::NonModal));
QSignalSpy spyVisibilityChanged(dlg, SIGNAL(visibilityChanged()));
- QTest::mouseClick(window, Qt::LeftButton, 0, QPoint(1000, 100)); // show
+ QTest::mouseClick(window, Qt::LeftButton, {}, QPoint(1000, 100)); // show
QTRY_VERIFY(spyVisibilityChanged.count() > 0);
int visibilityChangedCount = spyVisibilityChanged.count();
QCOMPARE(dlg->property("visible").toBool(), true);
- QTest::mouseClick(window, Qt::LeftButton, 0, QPoint(1000, 100)); // hide
+ QTest::mouseClick(window, Qt::LeftButton, {}, QPoint(1000, 100)); // hide
QTRY_VERIFY(spyVisibilityChanged.count() > visibilityChangedCount);
QCOMPARE(dlg->property("visible").toBool(), false);
#ifdef Q_OS_WIN