const int Cursor::ArrowSize = 4;
-Cursor::Cursor(const View &view, double time) :
+Cursor::Cursor(View &view, double time) :
TimeMarker(view, LineColour, time)
{
}
* @param view A reference to the view that owns this cursor pair.
* @param time The time to set the flag to.
*/
- Cursor(const View &view, double time);
+ Cursor(View &view, double time);
public:
/**
const int CursorPair::DeltaPadding = 8;
-CursorPair::CursorPair(const View &view) :
+CursorPair::CursorPair(View &view) :
_first(new Cursor(view, 0.0)),
_second(new Cursor(view, 1.0)),
_view(view)
* Constructor.
* @param view A reference to the view that owns this cursor pair.
*/
- CursorPair(const View &view);
+ CursorPair(View &view);
/**
* Returns a pointer to the first cursor.
namespace pv {
namespace view {
-TimeMarker::TimeMarker(const View &view, const QColor &colour,
- double time) :
+TimeMarker::TimeMarker(View &view, const QColor &colour, double time) :
_view(view),
_colour(colour),
_time(time)
* @param colour A reference to the colour of this cursor.
* @param time The time to set the flag to.
*/
- TimeMarker(const View &view, const QColor &colour, double time);
+ TimeMarker(View &view, const QColor &colour, double time);
public:
/**
void time_changed();
protected:
- const View &_view;
+ View &_view;
const QColor &_colour;
double _time;