Bug 91671

Summary: make page background color solid/configurable
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: HI    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Nicolas Brisset 2004-10-19 14:30:55 UTC
Version:           1.0.0_devel (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.3.2
OS:                SunOS (sun4u) release 5.8

When resizing plots, some empty space can appear. It currently looks grey on screen (which could be configurable, but it is not highly important), but when exported to a .png file it seems the empty areas are filled with parts of some image buffered by another KDE application... The result is not very usable.
Comment 1 Netterfield 2004-10-19 18:36:30 UTC
The dumping of cached pixmaps is a serious bug, and should be fixed asap.

The color should be the default plot background color.
Comment 2 Andrew Walker 2004-10-19 21:00:51 UTC
CVS commit by arwalker: 

Use the default plot background color when printing and exporting.

CCMAIL: 91671-done@bugs.kde.org


  M +2 -1      ksttoplevelview.cpp   1.80


--- kdeextragear-2/kst/kst/ksttoplevelview.cpp  #1.79:1.80
@@ -28,4 +28,5 @@
 #include "kstdoc.h"
 #include "kstplotgroup.h"
+#include "kstsettings.h"
 #include "ksttoplevelview.h"
 
@@ -83,5 +84,5 @@ void KstTopLevelView::paint(KstPaintType
     updateAlignment();
   } else {
-    p.eraseRect(geometry());
+    p.fillRect(geometry(), QBrush(KstSettings::globalSettings()->backgroundColor, SolidPattern));
   }
   QRegion clipRegion(geometry());