Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KisGamutMaskViewConverter.cpp
Show All 31 Lines | |||||
32 | { | 32 | { | ||
33 | computeAndSetZoom(); | 33 | computeAndSetZoom(); | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | KisGamutMaskViewConverter::~KisGamutMaskViewConverter() | 36 | KisGamutMaskViewConverter::~KisGamutMaskViewConverter() | ||
37 | { | 37 | { | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | QSize KisGamutMaskViewConverter::viewSize() const | ||||
41 | { | ||||
42 | return QSize(m_viewSize, m_viewSize); | ||||
43 | } | ||||
44 | | ||||
40 | QPointF KisGamutMaskViewConverter::documentToView(const QPointF &documentPoint) const | 45 | QPointF KisGamutMaskViewConverter::documentToView(const QPointF &documentPoint) const | ||
41 | { | 46 | { | ||
42 | return QPointF(documentToViewX(documentPoint.x()), documentToViewY(documentPoint.y())); | 47 | return QPointF(documentToViewX(documentPoint.x()), documentToViewY(documentPoint.y())); | ||
43 | } | 48 | } | ||
44 | 49 | | |||
45 | 50 | | |||
46 | QPointF KisGamutMaskViewConverter::viewToDocument(const QPointF &viewPoint) const | 51 | QPointF KisGamutMaskViewConverter::viewToDocument(const QPointF &viewPoint) const | ||
47 | { | 52 | { | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |