diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-08-20 16:48:57 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-09-09 14:14:34 +0200 |
commit | a40192644574daf694f70bbe1661487eb06fef68 (patch) | |
tree | 555e6d2d822e5b0bcd7247789a575c819144a8ef /tests | |
parent | 2520de0974649b6d720cc75b60024237b1b5ae4f (diff) |
Fix ProgressBar on Windows
Also remove the two custom progress bars from the manual test where
one has a custom background, and the other has a custom contentItem.
If you want to customize a progress bar, you need to provide
customizations for both the background and the contentItem. You cannot
provide a custom background (or contentItem) alone, since its almost
impossible to create a custom background that fits well with the
contentItem of all the other possible styles it might be using.
Change-Id: I82a87513e73f319bcecbfaed341ac4949f64c3bb
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/nativestyle/CustomProgressBars.qml | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/manual/nativestyle/CustomProgressBars.qml b/tests/manual/nativestyle/CustomProgressBars.qml index c920d243..b7617f92 100644 --- a/tests/manual/nativestyle/CustomProgressBars.qml +++ b/tests/manual/nativestyle/CustomProgressBars.qml @@ -59,38 +59,6 @@ ControlContainer { spacing: container.rowSpacing ProgressBar { - id: c1 - width: 100 - from: 0 - to: 10 - value: time - indeterminate: false - padding: 5 - background: Rectangle { - implicitWidth: 100 - implicitHeight: 6 - color: "darkgray" - } - } - - ProgressBar { - id: c2 - width: 100 - from: 0 - to: 10 - value: time - indeterminate: false - padding: 5 - contentItem: ProgressBarImpl { - implicitHeight: 6 - implicitWidth: 100 - progress: c2.position - indeterminate: false - color: "lightgreen" - } - } - - ProgressBar { id: c3 width: 100 from: 0 |