/* * This file is part of Fluid. * * Copyright (C) 2017 Pier Luigi Fiorini * * $BEGIN_LICENSE:MPL2$ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * $END_LICENSE$ */ import QtQuick 2.0 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 import Fluid.Controls 1.0 import "../.." Flickable { clip: true contentHeight: Math.max(layout.implicitHeight, height) ScrollBar.vertical: ScrollBar {} ColumnLayout { id: layout anchors.fill: parent Repeater { model: 2 StyledRectangle { Layout.fillWidth: true Layout.fillHeight: true Layout.minimumWidth: grid.width + 80 Layout.minimumHeight: grid.height + 80 GridLayout { id: grid anchors.centerIn: parent columns: 3 // Row 1 Item { width: 1 height: 1 } TitleLabel { text: qsTr("Determinate") Layout.alignment: Qt.AlignHCenter } TitleLabel { text: qsTr("Indeterminate") Layout.alignment: Qt.AlignHCenter } // Row 2 Label { text: qsTr("Static") } ProgressBar { from: 0.0 to: 1.0 value: 0.5 indeterminate: false } ProgressBar { from: 0.0 to: 1.0 value: 0.5 indeterminate: true } // Row 3 Label { text: qsTr("Animated") } ProgressBar { from: 0.0 to: 1.0 indeterminate: false SequentialAnimation on value { running: true loops: NumberAnimation.Infinite NumberAnimation { from: 0.0 to: 1.0 duration: 3000 } } } ProgressBar { from: 0.0 to: 1.0 indeterminate: true SequentialAnimation on value { running: true loops: NumberAnimation.Infinite NumberAnimation { from: 0.0 to: 1.0 duration: 3000 } } } } } } } }