aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls')
-rw-r--r--src/imports/controls/doc/snippets/screenshots/qtquickcontrols2-tooltip-slider.qml53
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc7
-rw-r--r--src/imports/controls/material/qquickmaterialstyle.cpp2
-rw-r--r--src/imports/controls/universal/qquickuniversalstyle.cpp2
4 files changed, 8 insertions, 56 deletions
diff --git a/src/imports/controls/doc/snippets/screenshots/qtquickcontrols2-tooltip-slider.qml b/src/imports/controls/doc/snippets/screenshots/qtquickcontrols2-tooltip-slider.qml
deleted file mode 100644
index fc2790b0..00000000
--- a/src/imports/controls/doc/snippets/screenshots/qtquickcontrols2-tooltip-slider.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.1
-
-Item {
- id: root
- width: slider.width
- height: slider.height * 2.0
-
- Binding { target: slider.anchors; property: "centerIn"; value: root }
- Binding { target: slider.anchors; property: "verticalCenterOffset"; value: slider.height / 2 }
- Binding { target: slider; property: "pressed"; value: root.Window.active }
-
- //! [1]
- Slider {
- id: slider
- value: 0.5
-
- ToolTip {
- parent: slider.handle
- visible: slider.pressed
- text: slider.valueAt(slider.position).toFixed(1)
- }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc
index 1b2dffe4..32644bfd 100644
--- a/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc
+++ b/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc
@@ -43,14 +43,15 @@
\image qtquickcontrols2-busyindicator.png
- \l BusyIndicator should be used to indicate activity.
+ BusyIndicator can be used to show that an operation is in progress,
+ and that the UI has to wait for the operation to complete.
\section1 PageIndicator Control
\image qtquickcontrols2-pageindicator.png
- \l BusyIndicator can be used to show that an operation is in progress,
- and that the UI has to wait for the operation to complete.
+ \l PageIndicator is used to indicate the currently active page in
+ a container of multiple pages.
\section1 ProgressBar Control
diff --git a/src/imports/controls/material/qquickmaterialstyle.cpp b/src/imports/controls/material/qquickmaterialstyle.cpp
index 788c0cf2..eeadb5f3 100644
--- a/src/imports/controls/material/qquickmaterialstyle.cpp
+++ b/src/imports/controls/material/qquickmaterialstyle.cpp
@@ -1160,8 +1160,10 @@ static Enum toEnumValue(const QByteArray &value, bool *ok)
static QByteArray resolveSetting(const QByteArray &env, const QSharedPointer<QSettings> &settings, const QString &name)
{
QByteArray value = qgetenv(env);
+#if QT_CONFIG(settings)
if (value.isNull() && !settings.isNull())
value = settings->value(name).toByteArray();
+#endif
return value;
}
diff --git a/src/imports/controls/universal/qquickuniversalstyle.cpp b/src/imports/controls/universal/qquickuniversalstyle.cpp
index a793034a..c581a784 100644
--- a/src/imports/controls/universal/qquickuniversalstyle.cpp
+++ b/src/imports/controls/universal/qquickuniversalstyle.cpp
@@ -531,8 +531,10 @@ static Enum toEnumValue(const QByteArray &value, bool *ok)
static QByteArray resolveSetting(const QByteArray &env, const QSharedPointer<QSettings> &settings, const QString &name)
{
QByteArray value = qgetenv(env);
+#if QT_CONFIG(settings)
if (value.isNull() && !settings.isNull())
value = settings->value(name).toByteArray();
+#endif
return value;
}