Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesignerItemRectBase.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
45 | 45 | | |||
46 | QRectF pointRect() const; | 46 | QRectF pointRect() const; | ||
47 | 47 | | |||
48 | virtual void enterInlineEditingMode(); | 48 | virtual void enterInlineEditingMode(); | ||
49 | virtual void exitInlineEditingMode(); | 49 | virtual void exitInlineEditingMode(); | ||
50 | 50 | | |||
51 | protected: | 51 | protected: | ||
52 | int m_dpiX; | 52 | int m_dpiX; | ||
53 | int m_dpiY; | 53 | int m_dpiY; | ||
54 | qreal m_userHeight; | | |||
55 | qreal m_userWidth; | | |||
56 | qreal m_pressX; | | |||
57 | qreal m_pressY; | | |||
58 | 54 | | |||
staniek: BTW, Hmm why KReportDpiSingleton::m_dpiX/Y == 75?
| |||||
piggz: From what I gather, 96 is most common fall-back dpi, so lets use that | |||||
both not needed, KReportDesignerItemRectBase initializes them; I propose to mark false positives staniek: both not needed, KReportDesignerItemRectBase initializes them; I propose to mark false positives | |||||
59 | enum UpdatePropertyFlag { | 55 | enum UpdatePropertyFlag { | ||
staniek: Hmm are these 4 members used? | |||||
60 | UpdateProperty, | 56 | UpdateProperty, | ||
61 | DontUpdateProperty | 57 | DontUpdateProperty | ||
62 | }; | 58 | }; | ||
63 | 59 | | |||
64 | void setSceneRect(const QPointF& topLeft, const QSizeF& size, UpdatePropertyFlag update = UpdateProperty); | 60 | void setSceneRect(const QPointF& topLeft, const QSizeF& size, UpdatePropertyFlag update = UpdateProperty); | ||
65 | void setSceneRect(const QRectF& rect, UpdatePropertyFlag update = UpdateProperty); | 61 | void setSceneRect(const QRectF& rect, UpdatePropertyFlag update = UpdateProperty); | ||
66 | 62 | | |||
67 | void drawHandles(QPainter*); | 63 | void drawHandles(QPainter*); | ||
Show All 20 Lines |
BTW, Hmm why KReportDpiSingleton::m_dpiX/Y == 75?