projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made TimeMarker and Cursor QObjects
[pulseview.git]
/
pv
/
view
/
timemarker.h
diff --git
a/pv/view/timemarker.h
b/pv/view/timemarker.h
index 616221b23ba139afd1992b9ac7d6acc9332db1d8..c02dab159dbecb93c03a9f5a2b921012e6d82c40 100644
(file)
--- a/
pv/view/timemarker.h
+++ b/
pv/view/timemarker.h
@@
-22,6
+22,7
@@
#define PULSEVIEW_PV_VIEW_MARKER_H
#include <QColor>
#define PULSEVIEW_PV_VIEW_MARKER_H
#include <QColor>
+#include <QObject>
class QPainter;
class QRect;
class QPainter;
class QRect;
@@
-31,8
+32,10
@@
namespace view {
class View;
class View;
-class TimeMarker
+class TimeMarker
: public QObject
{
{
+ Q_OBJECT
+
protected:
/**
* Constructor.
protected:
/**
* Constructor.
@@
-42,6
+45,11
@@
protected:
*/
TimeMarker(const View &view, const QColor &colour, double time);
*/
TimeMarker(const View &view, const QColor &colour, double time);
+ /**
+ * Copy constructor
+ */
+ TimeMarker(const TimeMarker &s);
+
public:
/**
* Gets the time of the marker.
public:
/**
* Gets the time of the marker.