~adamreichold/qpdfview/focus-toolbar

« back to all changes in this revision

Viewing changes to sources/pageitem.h

  • Committer: Adam Reichold
  • Date: 2013-10-04 07:14:57 UTC
  • Revision ID: adamreichold@myopera.com-20131004071457-1srbnxgcg0sk2x9e
all painting except printing should happen at logical resolution as everything else is QPaintEngine's job

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    RubberBandMode rubberBandMode() const;
69
69
    void setRubberBandMode(RubberBandMode rubberBandMode);
70
70
 
71
 
    int physicalDpiX() const;
72
 
    int physicalDpiY() const;
73
 
    void setPhysicalDpi(int physicalDpiX, int physicalDpiY);
 
71
    int resolutionX() const;
 
72
    int resolutionY() const;
 
73
    void setResolution(int resolutionX, int resolutionY);
74
74
 
75
75
    qreal devicePixelRatio() const;
76
76
    void setDevicePixelRatio(qreal devicePixelRatio);
104
104
 
105
105
protected slots:
106
106
    void on_renderTask_finished();
107
 
    void on_renderTask_imageReady(int physicalDpiX, int physicalDpiY, qreal devicePixelRatio, qreal scaleFactor, Rotation rotation, bool invertColors, bool prefetch, QImage image);
 
107
    void on_renderTask_imageReady(int resolutionX, int resolutionY, qreal devicePixelRatio, qreal scaleFactor, Rotation rotation, bool invertColors, bool prefetch, QImage image);
108
108
 
109
109
protected:
110
110
    void hoverEnterEvent(QGraphicsSceneHoverEvent*);
155
155
 
156
156
    // geometry
157
157
 
158
 
    int m_physicalDpiX;
159
 
    int m_physicalDpiY;
 
158
    int m_resolutionX;
 
159
    int m_resolutionY;
160
160
    qreal m_devicePixelRatio;
161
161
 
162
162
    qreal effectiveDevicePixelRatio();