diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-08-19 17:26:29 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-09 20:05:03 +0200 |
commit | c1d88b95f97a18443c60d62626e86b619cd84f34 (patch) | |
tree | d2eece6efeb388c2e9307e9298e4bc26f13a144a /examples/quick/controls/gallery | |
parent | 66d9c281af9407d920f9cad7020f8314c9945a10 (diff) | |
download | qtquickcontrols-c1d88b95f97a18443c60d62626e86b619cd84f34.tar.gz |
BusyIndicator
A basic BusyIndicator to indicate activity while blocking
the UI.
Change-Id: Iec88b6a4c7f23b630ebdf445c4cb288684c24cb7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'examples/quick/controls/gallery')
-rw-r--r-- | examples/quick/controls/gallery/content/Controls.qml | 13 | ||||
-rw-r--r-- | examples/quick/controls/gallery/main.qml | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/examples/quick/controls/gallery/content/Controls.qml b/examples/quick/controls/gallery/content/Controls.qml index 19251fea..946dd374 100644 --- a/examples/quick/controls/gallery/content/Controls.qml +++ b/examples/quick/controls/gallery/content/Controls.qml @@ -43,7 +43,7 @@ import QtQuick 2.1 -import QtQuick.Controls 1.0 +import QtQuick.Controls 1.1 import QtQuick.Controls.Styles 1.0 Item { @@ -119,6 +119,17 @@ Item { tickmarksEnabled: tickmarkCheck.checked stepSize: tickmarksEnabled ? 0.1 : 0 } + MouseArea { + id: busyCheck + width: parent.width + height: 40 + hoverEnabled:true + BusyIndicator { + running: busyCheck.containsMouse + anchors.horizontalCenter: parent.horizontalCenter + } + } + } Column { id: rightcol diff --git a/examples/quick/controls/gallery/main.qml b/examples/quick/controls/gallery/main.qml index 32e04efd..4e5bb378 100644 --- a/examples/quick/controls/gallery/main.qml +++ b/examples/quick/controls/gallery/main.qml @@ -43,7 +43,7 @@ import QtQuick 2.2 -import QtQuick.Controls 1.0 +import QtQuick.Controls 1.1 import QtQuick.Layouts 1.0 import QtQuick.Dialogs 1.0 import "content" |