Changeset View
Changeset View
Standalone View
Standalone View
src/selectionitem.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
60 | Intersects intersects(const QPointF &point); | 60 | Intersects intersects(const QPointF &point); | ||
61 | 61 | | |||
62 | void saveZoom(qreal zoom); | 62 | void saveZoom(qreal zoom); | ||
63 | 63 | | |||
64 | void setRect(const QRectF &rect); | 64 | void setRect(const QRectF &rect); | ||
65 | QPointF fixTranslation( QPointF dp); | 65 | QPointF fixTranslation( QPointF dp); | ||
66 | QRectF rect(); | 66 | QRectF rect(); | ||
67 | 67 | | |||
68 | qreal devicePixelRatio() const; | ||||
69 | void setDevicePixelRatio(qreal dpr); | ||||
70 | | ||||
68 | public: | 71 | public: | ||
69 | // Graphics Item methods | 72 | // Graphics Item methods | ||
70 | QRectF boundingRect() const override; | 73 | QRectF boundingRect() const override; | ||
71 | void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; | 74 | void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; | ||
72 | 75 | | |||
73 | private: | 76 | private: | ||
74 | struct Private; | 77 | struct Private; | ||
75 | Private *const d; | 78 | Private *const d; | ||
76 | }; | 79 | }; | ||
77 | 80 | | |||
78 | } // NameSpace KSaneIface | 81 | } // NameSpace KSaneIface | ||
79 | 82 | | |||
80 | #endif | 83 | #endif | ||
81 | 84 | |