Changeset View
Changeset View
Standalone View
Standalone View
ui/pageview.cpp
Show First 20 Lines • Show All 3410 Lines • ▼ Show 20 Line(s) | 3377 | #endif | |||
---|---|---|---|---|---|
3411 | } | 3411 | } | ||
3412 | } | 3412 | } | ||
3413 | return ret; | 3413 | return ret; | ||
3414 | } | 3414 | } | ||
3415 | 3415 | | |||
3416 | 3416 | | |||
3417 | void PageView::drawDocumentOnPainter( const QRect & contentsRect, QPainter * p ) | 3417 | void PageView::drawDocumentOnPainter( const QRect & contentsRect, QPainter * p ) | ||
3418 | { | 3418 | { | ||
3419 | QColor backColor = viewport()->palette().color( QPalette::Dark ); | 3419 | QColor backColor; | ||
3420 | | ||||
3421 | if ( Okular::Settings::useCustomBackgroundColor() ) | ||||
3422 | backColor = Okular::Settings::backgroundColor(); | ||||
3423 | else | ||||
3424 | backColor = viewport()->palette().color( QPalette::Dark ); | ||||
3420 | 3425 | | |||
3421 | // when checking if an Item is contained in contentsRect, instead of | 3426 | // when checking if an Item is contained in contentsRect, instead of | ||
3422 | // growing PageViewItems rects (for keeping outline into account), we | 3427 | // growing PageViewItems rects (for keeping outline into account), we | ||
3423 | // grow the contentsRect | 3428 | // grow the contentsRect | ||
3424 | QRect checkRect = contentsRect; | 3429 | QRect checkRect = contentsRect; | ||
3425 | checkRect.adjust( -3, -3, 1, 1 ); | 3430 | checkRect.adjust( -3, -3, 1, 1 ); | ||
3426 | 3431 | | |||
3427 | // create a region from which we'll subtract painted rects | 3432 | // create a region from which we'll subtract painted rects | ||
▲ Show 20 Lines • Show All 1917 Lines • Show Last 20 Lines |