#include "cursor.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <QPainter>
* 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.
*/
- boost::shared_ptr<Cursor> first() const;
+ std::shared_ptr<Cursor> first() const;
/**
* Returns a pointer to the second cursor.
*/
- boost::shared_ptr<Cursor> second() const;
+ std::shared_ptr<Cursor> second() const;
public:
QRectF get_label_rect(const QRect &rect) const;
std::pair<float, float> get_cursor_offsets() const;
private:
- boost::shared_ptr<Cursor> _first, _second;
+ std::shared_ptr<Cursor> _first, _second;
const View &_view;
QSizeF _text_size;