mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Remove the items fromthe scene before setting the scene rect to 0-size
Qt 6.7 draws the message item over the tab bar when it is present when shrinking the scene rect. Clear all the items when clearing the scene as a workaround.
This commit is contained in:
parent
3d01424f44
commit
6ce0b03295
@ -442,6 +442,15 @@ void GraphView::clear()
|
|||||||
_sliderPos = 0;
|
_sliderPos = 0;
|
||||||
_zoom = 1.0;
|
_zoom = 1.0;
|
||||||
|
|
||||||
|
removeItem(_xAxis);
|
||||||
|
removeItem(_yAxis);
|
||||||
|
removeItem(_xAxisLabel);
|
||||||
|
removeItem(_yAxisLabel);
|
||||||
|
removeItem(_slider);
|
||||||
|
removeItem(_info);
|
||||||
|
removeItem(_grid);
|
||||||
|
removeItem(_message);
|
||||||
|
|
||||||
_scene->setSceneRect(0, 0, 0, 0);
|
_scene->setSceneRect(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user