summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/quicktemplates2/qquicksplitview.cpp12
-rw-r--r--tests/manual/testbench/controls/SplitView.qml4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/quicktemplates2/qquicksplitview.cpp b/src/quicktemplates2/qquicksplitview.cpp
index 2c02d442..c1841e5b 100644
--- a/src/quicktemplates2/qquicksplitview.cpp
+++ b/src/quicktemplates2/qquicksplitview.cpp
@@ -202,8 +202,8 @@ QT_BEGIN_NAMESPACE
SplitView.preferredWidth and \c SplitView.preferredHeight properties can be
serialized using the \l saveState() and \l restoreState() functions:
- \code
- import QtQuick.Controls 2.5
+ \qml \QtMinorVersion
+ import QtQuick.Controls 2.\1
import Qt.labs.settings 1.0
ApplicationWindow {
@@ -222,13 +222,13 @@ QT_BEGIN_NAMESPACE
// ...
}
}
- \endcode
+ \endqml
Alternatively, the \l {Settings::}{value()} and \l {Settings::}{setValue()}
functions of \l Settings can be used:
- \code
- import QtQuick.Controls 2.5
+ \qml \QtMinorVersion
+ import QtQuick.Controls 2.\1
import Qt.labs.settings 1.0
ApplicationWindow {
@@ -246,7 +246,7 @@ QT_BEGIN_NAMESPACE
// ...
}
}
- \endcode
+ \endqml
\sa SplitHandle, {Customizing SplitView}, {Container Controls}
*/
diff --git a/tests/manual/testbench/controls/SplitView.qml b/tests/manual/testbench/controls/SplitView.qml
index 7d534de4..94f06221 100644
--- a/tests/manual/testbench/controls/SplitView.qml
+++ b/tests/manual/testbench/controls/SplitView.qml
@@ -48,8 +48,8 @@
**
****************************************************************************/
-import QtQuick 2.12
-import QtQuick.Controls 2.5
+import QtQuick 2.13
+import QtQuick.Controls 2.13
QtObject {
property var supportedStates: [