X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fflag.cpp;h=3afd255fc7ac05eba350c331d0731a129c4277e1;hb=4df7756e87d3acfdd71603c2105c0ef54e58cc85;hp=01d13670a70b87fbbb2042dcbb70c9278724e749;hpb=786b76785856c6cf8f5916c0b8d76a61695762f9;p=pulseview.git diff --git a/pv/view/flag.cpp b/pv/view/flag.cpp index 01d13670..3afd255f 100644 --- a/pv/view/flag.cpp +++ b/pv/view/flag.cpp @@ -26,18 +26,19 @@ #include #include -#include +#include #include using std::shared_ptr; namespace pv { -namespace view { +namespace views { +namespace TraceView { const QColor Flag::FillColour(0x73, 0xD2, 0x16); -Flag::Flag(View &view, double time, const QString &text) : +Flag::Flag(View &view, const pv::util::Timestamp& time, const QString &text) : TimeMarker(view, FillColour, time), text_(text) { @@ -45,7 +46,7 @@ Flag::Flag(View &view, double time, const QString &text) : Flag::Flag(const Flag &flag) : TimeMarker(flag.view_, FillColour, flag.time_), - std::enable_shared_from_this(flag) + std::enable_shared_from_this(flag) { } @@ -108,5 +109,6 @@ void Flag::on_text_changed(const QString &text) view_.time_item_appearance_changed(true, false); } -} // namespace view +} // namespace TraceView +} // namespace views } // namespace pv