projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CMakeLists.txt, test/CMakeLists.txt: MinGW linking fix.
[pulseview.git]
/
pv
/
view
/
cursorpair.h
diff --git
a/pv/view/cursorpair.h
b/pv/view/cursorpair.h
index 42e6e51fa32ca3c764ac521b1d16318983e56825..815276e24c0ca997faf2af5e780da632cb6108eb 100644
(file)
--- a/
pv/view/cursorpair.h
+++ b/
pv/view/cursorpair.h
@@
-23,6
+23,8
@@
#include "cursor.h"
#include "cursor.h"
+#include <boost/shared_ptr.hpp>
+
#include <QPainter>
class QPainter;
#include <QPainter>
class QPainter;
@@
-40,27
+42,17
@@
public:
* Constructor.
* @param view A reference to the view that owns this cursor pair.
*/
* Constructor.
* @param view A reference to the view that owns this cursor pair.
*/
- CursorPair(const View &view);
-
- /**
- * Returns a reference to the first cursor.
- */
- Cursor& first();
-
- /**
- * Returns a reference to the first cursor.
- */
- const Cursor& first() const;
+ CursorPair(View &view);
/**
/**
- * Returns a
reference to the second
cursor.
+ * Returns a
pointer to the first
cursor.
*/
*/
-
Cursor& second()
;
+
boost::shared_ptr<Cursor> first() const
;
/**
/**
- * Returns a
reference
to the second cursor.
+ * Returns a
pointer
to the second cursor.
*/
*/
-
const Cursor&
second() const;
+
boost::shared_ptr<Cursor>
second() const;
public:
QRectF get_label_rect(const QRect &rect) const;
public:
QRectF get_label_rect(const QRect &rect) const;
@@
-77,7
+69,7
@@
public:
std::pair<float, float> get_cursor_offsets() const;
private:
std::pair<float, float> get_cursor_offsets() const;
private:
-
Cursor
_first, _second;
+
boost::shared_ptr<Cursor>
_first, _second;
const View &_view;
QSizeF _text_size;
const View &_view;
QSizeF _text_size;