projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeSignal: Add and use inclusive/exclusive sample count variant
[pulseview.git]
/
pv
/
views
/
trace
/
timemarker.hpp
diff --git
a/pv/views/trace/timemarker.hpp
b/pv/views/trace/timemarker.hpp
index 7c49948b497179a29a32fd22cfcc3e633c2a78f1..48afc16bb77e9c346ec75e80c06ab3564873ecc1 100644
(file)
--- a/
pv/views/trace/timemarker.hpp
+++ b/
pv/views/trace/timemarker.hpp
@@
-41,6
+41,10
@@
namespace trace {
class View;
class View;
+/**
+ * The TimeMarker class represents items on the @ref Ruler that highlight a
+ * single point in time to the user. Aside from this, it is generic in nature.
+ */
class TimeMarker : public TimeItem
{
Q_OBJECT
class TimeMarker : public TimeItem
{
Q_OBJECT
@@
-52,10
+56,10
@@
protected:
/**
* Constructor.
* @param view A reference to the view that owns this marker.
/**
* Constructor.
* @param view A reference to the view that owns this marker.
- * @param colo
ur A reference to the colou
r of this cursor.
+ * @param colo
r A reference to the colo
r of this cursor.
* @param time The time to set the flag to.
*/
* @param time The time to set the flag to.
*/
- TimeMarker(View &view, const QColor &colo
u
r, const pv::util::Timestamp& time);
+ TimeMarker(View &view, const QColor &color, const pv::util::Timestamp& time);
public:
/**
public:
/**
@@
-74,7
+78,7
@@
public:
* Gets the arrow-tip point of the time marker.
* @param rect the rectangle of the ruler area.
*/
* Gets the arrow-tip point of the time marker.
* @param rect the rectangle of the ruler area.
*/
- QPoint point(const QRect &rect) const override;
+ QPoint
drag_
point(const QRect &rect) const override;
/**
* Computes the outline rectangle of a label.
/**
* Computes the outline rectangle of a label.
@@
-116,7
+120,7
@@
private Q_SLOTS:
void on_value_changed(const pv::util::Timestamp& value);
protected:
void on_value_changed(const pv::util::Timestamp& value);
protected:
- const QColor &colo
u
r_;
+ const QColor &color_;
pv::util::Timestamp time_;
pv::util::Timestamp time_;