mirror of https://github.com/qt/qtgraphs.git
Fix horizontal/vertical button from testbed/barModelMapping and remove button from testbed/qmlUsageSeries
Task-number: QTBUG-128898 Pick-to: 6.8 Change-Id: Icfe02eb44b2c0d7870c45901029ca834a830d53b Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
This commit is contained in:
parent
3eb85fa68e
commit
f75dd68e23
|
|
@ -339,12 +339,15 @@ Rectangle {
|
|||
width: 250
|
||||
text: "Vertical/Horizontal bars"
|
||||
onClicked: {
|
||||
if (barSeries.barsOrientation == BarSeries.BarsOrientation.Vertical)
|
||||
barSeries.barsOrientation = BarSeries.BarsOrientation.Horizontal
|
||||
if (chartView.orientation === Qt.Vertical)
|
||||
chartView.orientation = Qt.Horizontal
|
||||
else
|
||||
barSeries.barsOrientation = BarSeries.BarsOrientation.Vertical
|
||||
chartView.orientation = Qt.Vertical
|
||||
myModel.startAddMapping()
|
||||
myModel.endAddMapping()
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
width: 250
|
||||
text: "Vertical/Horizontal mapper"
|
||||
|
|
|
|||
|
|
@ -114,11 +114,11 @@ Rectangle {
|
|||
if (col.nx <= 1)
|
||||
return
|
||||
|
||||
line.remove(line.count() - 1)
|
||||
scatter.remove(scatter.count() - 1)
|
||||
line.remove(line.count - 1)
|
||||
scatter.remove(scatter.count - 1)
|
||||
bar.remove(bar.barSets.count - 1)
|
||||
areaSpline.remove(areaSpline.count() - 1)
|
||||
areaLine.remove(areaLine.count() - 1)
|
||||
areaSpline.remove(areaSpline.count - 1)
|
||||
areaLine.remove(areaLine.count - 1)
|
||||
|
||||
col.nx--
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue