From 0fd5b063447f0a1224001a61b04fdbf354e934ac Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Tue, 29 Oct 2024 16:34:18 +0100 Subject: [PATCH] Revert "draw graph into SVG" This reverts commit b9e1e9b2f33ed09219b1b0f0bf3729f0f99d6d68. --- libshvvisu/include/shv/visu/timeline/graph.h | 4 ---- libshvvisu/src/timeline/graph.cpp | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/libshvvisu/include/shv/visu/timeline/graph.h b/libshvvisu/include/shv/visu/timeline/graph.h index 0bdbfb82b..05176ba2c 100644 --- a/libshvvisu/include/shv/visu/timeline/graph.h +++ b/libshvvisu/include/shv/visu/timeline/graph.h @@ -23,8 +23,6 @@ #include #endif -class QSvgGenerator; - namespace shv::visu::timeline { class SHVVISU_DECL_EXPORT Graph : public QObject @@ -238,8 +236,6 @@ class SHVVISU_DECL_EXPORT Graph : public QObject void loadVisualSettings(const QString &settings_id, const QString &name); QString loadedVisualSettingsId(); - void draw(QSvgGenerator *svg_generator, const QRect &rect); - protected: void sanityXRangeZoom(); diff --git a/libshvvisu/src/timeline/graph.cpp b/libshvvisu/src/timeline/graph.cpp index 933facb73..2d07a1a87 100644 --- a/libshvvisu/src/timeline/graph.cpp +++ b/libshvvisu/src/timeline/graph.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -1297,15 +1296,6 @@ int Graph::maximizedChannelIndex() const return -1; } -void Graph::draw(QSvgGenerator *svg_generator, const QRect &rect) -{ - auto orig_layout = m_layout.rect; - makeLayout(rect); - QPainter painter(svg_generator); - draw(&painter, rect, rect); - makeLayout(orig_layout); -} - void Graph::draw(QPainter *painter, const QRect &dirty_rect, const QRect &view_rect) { drawBackground(painter, dirty_rect);