pv/view/cursor.h
pv/view/header.h
pv/view/ruler.h
+ pv/view/selectableitem.h
+ pv/view/signal.h
pv/view/timemarker.h
pv/view/view.h
pv/view/viewport.h
#include <list>
+#include <QObject>
+
class QAction;
namespace pv {
namespace view {
-class SelectableItem
+class SelectableItem : public QObject
{
+ Q_OBJECT
+
};
} // namespace view
class Signal : public SelectableItem
{
+ Q_OBJECT
+
private:
static const int LabelHitPadding;
static const int LabelHighlightRadius;
}
TimeMarker::TimeMarker(const TimeMarker &s) :
- QObject(),
_view(s._view),
_colour(s._colour),
_time(s._time)
#include <QObject>
#include <QRectF>
+#include "selectableitem.h"
+
class QPainter;
class QRect;
class View;
-class TimeMarker : public QObject
+class TimeMarker : public SelectableItem
{
Q_OBJECT