Commit 3e5d5b40 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix typo in a comment

Add the X cross on pages that don't have the pixmap, helps the user see that there's nothing on that page because kpdf is "slow" and the page has not been rendered yet, not that it is empty because there's nothing on that pdf page, use with military_0604.pdf for example (google)

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=374909
parent ee1fd5ef
......@@ -262,6 +262,12 @@ void PagePainter::paintPageOnPainter( const KPDFPage * page, int id, int flags,
destPainter->fillRect( limits, Settings::paperColor() );
else
destPainter->fillRect( limits, Qt::white );
// draw a cross (to that the pixmap as not yet been loaded)
// helps a lot on pages that take much to render
destPainter->setPen( Qt::gray );
destPainter->drawLine( 0, 0, width-1, height-1 );
destPainter->drawLine( 0, height-1, width-1, 0 );
return;
}
......
......@@ -312,7 +312,7 @@ void PageView::notifyPixmapChanged( int pageNumber )
expandedRect.addCoords( -1, -1, 3, 3 );
updateContents( expandedRect );
// if we where "zoom-dragging" do not overwrite the "zoom-drag" cursor
// if we were "zoom-dragging" do not overwrite the "zoom-drag" cursor
if (cursor().shape() != Qt::SizeVerCursor)
{
// that is here because of that
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment