projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use multiple drawLine() calls instead of drawPolyline()
[pulseview.git]
/
pv
/
views
/
trace
/
triggermarker.hpp
diff --git
a/pv/views/trace/triggermarker.hpp
b/pv/views/trace/triggermarker.hpp
index 09017c0b882a10e57c2219c4e756e38adaa06687..a97fefb0d3faf8c571e347f6b7ddfa240c31af39 100644
(file)
--- a/
pv/views/trace/triggermarker.hpp
+++ b/
pv/views/trace/triggermarker.hpp
@@
-22,16
+22,22
@@
#include "timeitem.hpp"
#include "timeitem.hpp"
+#include <QPoint>
+
namespace pv {
namespace views {
namespace trace {
namespace pv {
namespace views {
namespace trace {
+/**
+ * The TriggerMarker class is used to show to the user at what point in time
+ * a trigger occured. It is not editable by the user.
+ */
class TriggerMarker : public TimeItem
{
Q_OBJECT
public:
class TriggerMarker : public TimeItem
{
Q_OBJECT
public:
- static const QColor Colo
u
r;
+ static const QColor Color;
public:
/**
public:
/**
@@
-54,7
+60,7
@@
public:
/**
Returns true if the item may be dragged/moved.
*/
/**
Returns true if the item may be dragged/moved.
*/
- bool is_draggable() const override;
+ bool is_draggable(
QPoint pos
) const override;
/**
* Sets the time of the marker.
/**
* Sets the time of the marker.
@@
-67,7
+73,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;
/**
* Paints the foreground layer of the item with a QPainter
/**
* Paints the foreground layer of the item with a QPainter