Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/rasterimageview.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | 309 | { | |||
---|---|---|---|---|---|
311 | if (!viewRect.intersects(boundingRect())) { | 311 | if (!viewRect.intersects(boundingRect())) { | ||
312 | return; | 312 | return; | ||
313 | } | 313 | } | ||
314 | 314 | | |||
315 | if (zoomToFit()) { | 315 | if (zoomToFit()) { | ||
316 | setZoom(computeZoomToFit()); | 316 | setZoom(computeZoomToFit()); | ||
317 | } else if (zoomToFill()) { | 317 | } else if (zoomToFill()) { | ||
318 | setZoom(computeZoomToFill()); | 318 | setZoom(computeZoomToFill()); | ||
319 | } else { | ||||
320 | applyPendingScrollPos(); | ||||
319 | } | 321 | } | ||
320 | 322 | | |||
321 | d->setScalerRegionToVisibleRect(); | 323 | d->setScalerRegionToVisibleRect(); | ||
322 | update(); | 324 | update(); | ||
323 | emit imageRectUpdated(); | 325 | emit imageRectUpdated(); | ||
324 | } | 326 | } | ||
325 | 327 | | |||
326 | void RasterImageView::slotDocumentIsAnimatedUpdated() | 328 | void RasterImageView::slotDocumentIsAnimatedUpdated() | ||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |