Changeset View
Changeset View
Standalone View
Standalone View
ui/presentationwidget.cpp
Show First 20 Lines • Show All 1441 Lines • ▼ Show 20 Line(s) | 1441 | { | |||
---|---|---|---|---|---|
1442 | PresentationFrame * frame = m_frames[ m_frameIndex ]; | 1442 | PresentationFrame * frame = m_frames[ m_frameIndex ]; | ||
1443 | int pixW = frame->geometry.width(); | 1443 | int pixW = frame->geometry.width(); | ||
1444 | int pixH = frame->geometry.height(); | 1444 | int pixH = frame->geometry.height(); | ||
1445 | 1445 | | |||
1446 | // operation will take long: set busy cursor | 1446 | // operation will take long: set busy cursor | ||
1447 | QApplication::setOverrideCursor( QCursor( Qt::BusyCursor ) ); | 1447 | QApplication::setOverrideCursor( QCursor( Qt::BusyCursor ) ); | ||
1448 | // request the pixmap | 1448 | // request the pixmap | ||
1449 | QLinkedList< Okular::PixmapRequest * > requests; | 1449 | QLinkedList< Okular::PixmapRequest * > requests; | ||
1450 | requests.push_back( new Okular::PixmapRequest( this, m_frameIndex, pixW, pixH, PRESENTATION_PRIO, Okular::PixmapRequest::NoFeature ) ); | 1450 | Okular::PixmapRequest * mainRequest = new Okular::PixmapRequest( this, m_frameIndex, pixW, pixH, PRESENTATION_PRIO, Okular::PixmapRequest::NoFeature ); | ||
aacid: why this change? You already "fixed" this with the check for normalized area not being 0, no? | |||||
1451 | mainRequest->setNormalizedRect(Okular::NormalizedRect(0,0,1,1)); | ||||
1452 | | ||||
1453 | requests.push_back( mainRequest ); | ||||
1451 | // restore cursor | 1454 | // restore cursor | ||
1452 | QApplication::restoreOverrideCursor(); | 1455 | QApplication::restoreOverrideCursor(); | ||
1453 | // ask for next and previous page if not in low memory usage setting | 1456 | // ask for next and previous page if not in low memory usage setting | ||
1454 | if ( Okular::SettingsCore::memoryLevel() != Okular::SettingsCore::EnumMemoryLevel::Low ) | 1457 | if ( Okular::SettingsCore::memoryLevel() != Okular::SettingsCore::EnumMemoryLevel::Low ) | ||
1455 | { | 1458 | { | ||
1456 | int pagesToPreload = 1; | 1459 | int pagesToPreload = 1; | ||
1457 | 1460 | | |||
1458 | // If greedy, preload everything | 1461 | // If greedy, preload everything | ||
▲ Show 20 Lines • Show All 1033 Lines • Show Last 20 Lines |
why this change? You already "fixed" this with the check for normalized area not being 0, no?