From dfab39b92d5459d076293666f19b5026cba06c59 Mon Sep 17 00:00:00 2001 From: Alexis Jeandet Date: Fri, 7 Jun 2024 17:36:51 +0200 Subject: [PATCH] MultiSpan hide/show didn't update cached state Signed-off-by: Alexis Jeandet --- include/SciQLopPlots/SciQLopVerticalSpan.hpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/include/SciQLopPlots/SciQLopVerticalSpan.hpp b/include/SciQLopPlots/SciQLopVerticalSpan.hpp index 5515415..ef0c555 100644 --- a/include/SciQLopPlots/SciQLopVerticalSpan.hpp +++ b/include/SciQLopPlots/SciQLopVerticalSpan.hpp @@ -414,20 +414,8 @@ class MultiPlotsVerticalSpan : public QObject [[nodiscard]] inline bool is_read_only() const noexcept { return _read_only; } - inline void show() - { - for (auto span : _spans) - { - span->set_visible(true); - } - } + inline void show() { set_visible(true); } - inline void hide() - { - for (auto span : _spans) - { - span->set_visible(false); - } - } + inline void hide() { set_visible(false); } };