Bug 91671 - make page background color solid/configurable
Summary: make page background color solid/configurable
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Solaris
: HI normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 14:30 UTC by Nicolas Brisset
Modified: 2004-10-19 21:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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());