X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.hpp;h=10e3331c639ba4eee64bd146d1ea1d07c7fdd49c;hp=113a6a10a6f04c097d2bc9d828e1f516f63fa2f0;hb=60d9b99a32e551cffd2b537d3e157d578a761c9b;hpb=7708eb92ca87836f5d4987899e0fbb7a4e2335b4 diff --git a/pv/view/timemarker.hpp b/pv/view/timemarker.hpp index 113a6a1..10e3331 100644 --- a/pv/view/timemarker.hpp +++ b/pv/view/timemarker.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_VIEW_MARKER_H -#define PULSEVIEW_PV_VIEW_MARKER_H +#ifndef PULSEVIEW_PV_VIEW_MARKER_HPP +#define PULSEVIEW_PV_VIEW_MARKER_HPP #include #include @@ -51,18 +51,18 @@ protected: * @param colour A reference to the colour of this cursor. * @param time The time to set the flag to. */ - TimeMarker(View &view, const QColor &colour, double time); + TimeMarker(View &view, const QColor &colour, const pv::util::Timestamp& time); public: /** * Gets the time of the marker. */ - double time() const; + const pv::util::Timestamp& time() const; /** * Sets the time of the marker. */ - void set_time(double time); + void set_time(const pv::util::Timestamp& time) override; float get_x() const; @@ -114,7 +114,7 @@ private Q_SLOTS: protected: const QColor &colour_; - double time_; + pv::util::Timestamp time_; QSizeF text_size_; @@ -126,4 +126,4 @@ protected: } // namespace view } // namespace pv -#endif // PULSEVIEW_PV_VIEW_MARKER_H +#endif // PULSEVIEW_PV_VIEW_MARKER_HPP