diff --git a/include/SciQLopPlots/SciQLopVerticalSpan.hpp b/include/SciQLopPlots/SciQLopVerticalSpan.hpp index 517ede3..f7a2ea8 100644 --- a/include/SciQLopPlots/SciQLopVerticalSpan.hpp +++ b/include/SciQLopPlots/SciQLopVerticalSpan.hpp @@ -29,7 +29,8 @@ #include #include -class VerticalSpanBorder : public SciQLopPlotItem +class VerticalSpanBorder : public SciQLopPlotItem, + public SciQlopItemWithToolTip { Q_OBJECT @@ -242,6 +243,11 @@ class VerticalSpan : public SciQLopPlotItem, public SciQlopItemWith } } + inline void set_borders_tool_tip(const QString& tool_tip) + { + this->_border1->setToolTip(tool_tip); + this->_border2->setToolTip(tool_tip); + } inline void set_borders_color(const QColor& color) { @@ -311,6 +317,10 @@ class SciQLopVerticalSpan : public QObject inline void set_read_only(bool read_only) { this->_impl->setMovable(!read_only); } [[nodiscard]] inline bool read_only() const noexcept { return !this->_impl->movable(); } - inline void set_tool_tip(const QString& tool_tip) { this->_impl->setToolTip(tool_tip); } + inline void set_tool_tip(const QString& tool_tip) + { + this->_impl->setToolTip(tool_tip); + this->_impl->set_borders_tool_tip(tool_tip); + } [[nodiscard]] inline QString tool_tip() const noexcept { return this->_impl->tooltip(); } };