1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Fixed display artifact in the graph tab bar

Yet another workaroud for the Qt 6.7 bug that draws QGraphicsScene items
to the graph tab bar. Follow up to 6ce0b03295.
This commit is contained in:
Martin Tůma 2024-09-20 09:05:55 +02:00
parent c5a7a4bb0e
commit 8c2e2f65c3

View File

@ -357,6 +357,7 @@ void GraphView::redraw(const QSizeF &size)
void GraphView::resizeEvent(QResizeEvent *e) void GraphView::resizeEvent(QResizeEvent *e)
{ {
if (!_graphs.isEmpty())
redraw(e->size() - QSizeF(MARGIN, MARGIN)); redraw(e->size() - QSizeF(MARGIN, MARGIN));
QGraphicsView::resizeEvent(e); QGraphicsView::resizeEvent(e);