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); } };