2011-04-21 17:01:42 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 by Artur Duque de Souza <asouzakde.org>
|
2011-07-09 00:21:24 +02:00
|
|
|
* Copyright (C) 2011 by Daker Fernandes Pinheiro <dakerfp@gmail.com>
|
2014-11-09 01:16:30 +01:00
|
|
|
* Copyright (C) 2014 by Kai Uwe Broulik <kde@privat.broulik.de>
|
2011-04-21 17:01:42 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this program; if not, write to the
|
|
|
|
* Free Software Foundation, Inc.,
|
2013-03-13 02:34:53 +01:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
|
2011-04-21 17:01:42 +02:00
|
|
|
*/
|
|
|
|
|
2014-06-15 22:28:21 +02:00
|
|
|
import QtQuick 2.2
|
2014-11-09 01:16:30 +01:00
|
|
|
import QtQuick.Controls 1.2
|
2014-11-26 15:13:33 +01:00
|
|
|
import QtQuick.Controls.Styles.Plasma 2.0 as Styles
|
2011-04-21 17:01:42 +02:00
|
|
|
|
2012-12-13 17:01:04 +01:00
|
|
|
/**
|
|
|
|
* A simple busy indicator,
|
|
|
|
* It is used to indicate a task whose duration is unknown. If the task
|
|
|
|
* duration/number of steps is known, a ProgressBar should be used instead.
|
2014-08-13 12:09:55 +02:00
|
|
|
*
|
2014-11-09 01:16:30 +01:00
|
|
|
* @inherit QtQuick.Controls.BusyIndicator
|
2012-12-13 17:01:04 +01:00
|
|
|
*/
|
2014-11-09 01:16:30 +01:00
|
|
|
BusyIndicator {
|
2012-12-13 17:01:04 +01:00
|
|
|
/**
|
|
|
|
* Set this property if you don't want to apply a filter to smooth
|
|
|
|
* the busy icon while animating.
|
|
|
|
* Smooth filtering gives better visual quality, but is slower.
|
|
|
|
*
|
|
|
|
* The default value is true.
|
|
|
|
*/
|
2011-07-08 23:52:40 +02:00
|
|
|
property bool smoothAnimation: true
|
2011-05-18 15:31:00 +02:00
|
|
|
|
|
|
|
implicitWidth: 52
|
|
|
|
implicitHeight: 52
|
|
|
|
|
2014-11-09 01:16:30 +01:00
|
|
|
style: Styles.BusyIndicatorStyle {}
|
2011-04-27 11:47:08 +02:00
|
|
|
|
2011-04-21 17:01:42 +02:00
|
|
|
}
|