CustomBusyIndicator.qml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import QtQuick 2.3
  2. import QtQuick.Controls 1.4
  3. import QtQuick.Controls.Styles 1.3
  4. BusyIndicator {
  5. id: busy
  6. property int bLines: 11
  7. property real bLength: 10 // % of the width of the control
  8. property real bWidth: 5 // % of the height of the control
  9. property real bRadius: 13 // % of the width of the control
  10. property real bCorner: 1 // between 0 and 1
  11. property real bSpeed: 100 // smaller is faster
  12. property real bTrail: 0.6 // between 0 and 1
  13. property bool bClockWise: true
  14. property real bOpacity: 0.7
  15. property string bColor: "#7B756B"
  16. property string bHighlightColor: "white"
  17. property string bBgColor: "black"
  18. style: CustomBusyIndicatorStyle {
  19. lines: control.bLines
  20. length: control.bLength
  21. width: control.bWidth
  22. radius: control.bRadius
  23. corner: control.bCorner
  24. speed: control.bSpeed
  25. trail: control.bTrail
  26. clockWise: control.bClockWise
  27. opacity: control.bOpacity
  28. color: control.bColor
  29. highlightColor: control.bHighlightColor
  30. bgColor: control.bBgColor
  31. }
  32. }