X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fflag.hpp;h=1311d4a9eec3dd831d36d3de28af39bed538d353;hp=265621029d3ec99797a26f465abc893b55659c2d;hb=2d25fc473d6dc5d578f45f8d6bb061639afec405;hpb=7a01bd3654ed046216308fa64edfd79be7cd525f diff --git a/pv/view/flag.hpp b/pv/view/flag.hpp index 26562102..1311d4a9 100644 --- a/pv/view/flag.hpp +++ b/pv/view/flag.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_VIEW_FLAG_HPP -#define PULSEVIEW_PV_VIEW_FLAG_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_FLAG_HPP +#define PULSEVIEW_PV_VIEWS_TRACEVIEW_FLAG_HPP #include @@ -28,10 +28,11 @@ class QMenu; namespace pv { -namespace view { +namespace views { +namespace TraceView { class Flag : public TimeMarker, - public std::enable_shared_from_this + public std::enable_shared_from_this { Q_OBJECT @@ -45,7 +46,7 @@ public: * @param time The time to set the flag to. * @param text The text of the marker. */ - Flag(View &view, double time, const QString &text); + Flag(View &view, const pv::util::Timestamp& time, const QString &text); /** * Copy constructor. @@ -77,7 +78,8 @@ private: QString text_; }; -} // namespace view +} // namespace TraceView +} // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEW_FLAG_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_FLAG_HPP