aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/ProgressBar.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-26 15:50:32 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-27 10:37:32 +0000
commitb7aa18839ef53ca4b63e38c61593d34d96b376a1 (patch)
tree8baa853293a041c07a95c86f63e24eeba6897f74 /src/imports/controls/material/ProgressBar.qml
parent3242a3be7c7cc84e6fcda3e90a7713d9fda16915 (diff)
Material ProgressBar: remove padding
Other styles don't have padding either. No padding makes it possible to put a ProgressBar at the bottom of a ToolBar or other AppWindow header, which is common in mobile apps these days. ApplicationWindow { visible: true header: ToolBar { ProgressBar { value: 0.5 width: parent.width anchors.bottom: parent.bottom background.visible: false } } } } Change-Id: Ia43c5bfd0b58dafd5ff0ad4c65fa95f156622aa4 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/material/ProgressBar.qml')
-rw-r--r--src/imports/controls/material/ProgressBar.qml2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/imports/controls/material/ProgressBar.qml b/src/imports/controls/material/ProgressBar.qml
index 709ac28d..59c03204 100644
--- a/src/imports/controls/material/ProgressBar.qml
+++ b/src/imports/controls/material/ProgressBar.qml
@@ -46,8 +46,6 @@ T.ProgressBar {
implicitHeight: Math.max(background ? background.implicitHeight : 0,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding
- padding: 6
-
//! [indicator]
indicator: Item {
x: control.leftPadding