[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kspread/ui
From:       Carlos Licea <carlos_licea () hotmail ! com>
Date:       2010-05-13 6:44:41
Message-ID: 20100513064441.6F7D2AC8B6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1126166 by clicea:

Be less intrusive when the background is set but is not repeated: don't paint
background at all.
The standar is very vague in how is every property supposed to be taken into
account and how they interact with each other, therefore that implementation is
left as to do.

 M  +4 -0      SheetView.cpp  


--- trunk/koffice/kspread/ui/SheetView.cpp #1126165:1126166
@@ -210,6 +210,9 @@
 
     // 0. Paint the sheet background
     if (!sheet()->backgroundImage().isNull()) {
+        //TODO support all the different properties
+        Sheet::BackgroundImageProperties properties = sheet()->backgroundImageProperties();
+        if( properties.repeat == Sheet::BackgroundImageProperties::Repeat ) {
         const int firstCol = d->visibleRect.left();
         const int firstRow = d->visibleRect.top();
         const int firstColPosition = d->sheet->columnPosition(firstCol);
@@ -235,6 +238,7 @@
             xBackground += imageWidth;
         }
     }
+    }
 
     // 1. Paint the cell background
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic