Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/svgviewadapter.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 76 | { | |||
---|---|---|---|---|---|
80 | if (zoomToFit()) { | 80 | if (zoomToFit()) { | ||
81 | setZoom(computeZoomToFit(), QPointF(-1, -1), ForceUpdate); | 81 | setZoom(computeZoomToFit(), QPointF(-1, -1), ForceUpdate); | ||
82 | } else if (zoomToFill()) { | 82 | } else if (zoomToFill()) { | ||
83 | setZoom(computeZoomToFill(), QPointF(-1, -1), ForceUpdate); | 83 | setZoom(computeZoomToFill(), QPointF(-1, -1), ForceUpdate); | ||
84 | } else { | 84 | } else { | ||
85 | mSvgItem->setScale(zoom()); | 85 | mSvgItem->setScale(zoom()); | ||
86 | } | 86 | } | ||
87 | applyPendingScrollPos(); | 87 | applyPendingScrollPos(); | ||
88 | completed(); | 88 | emit completed(); | ||
89 | mImageFullyLoaded = true; | 89 | mImageFullyLoaded = true; | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | void SvgImageView::onZoomChanged() | 92 | void SvgImageView::onZoomChanged() | ||
93 | { | 93 | { | ||
94 | mSvgItem->setScale(zoom()); | 94 | mSvgItem->setScale(zoom()); | ||
95 | adjustItemPos(); | 95 | adjustItemPos(); | ||
96 | } | 96 | } | ||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |