[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/chartshape/kdchart/src
From: Björn Breitmeyer <bjoern.breitmeyer () kdab ! com>
Date: 2010-10-27 12:53:51
Message-ID: 20101027125351.4F2C3AC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1190349 by breitmeyer:
-hadows colors, obviously the brush color should be darkend and
the brush should be set always
Diese und die folgenden Zeilen werden ignoriert --
M src/KDChartPieDiagram.cpp
M +5 -2 KDChartPieDiagram.cpp
--- trunk/koffice/plugins/chartshape/kdchart/src/KDChartPieDiagram.cpp #1190348:1190349
@@ -628,10 +628,13 @@
// No need to save the brush, will be changed on return from this
// method anyway.
+ const QBrush brush = this->brush( model()->index( 0, pie, rootIndex() ) );
if( threeDAttrs.useShadowColors() ){
- const QPen pen = this->pen( model()->index( 0, pie, rootIndex() ) );
- painter->setBrush( QBrush( pen.color() ) );
+ painter->setBrush( QBrush( brush.color().darker() ) );
}
+ else{
+ painter->setBrush( brush );
+ }
//painter->setBrush( QBrush( threeDAttrs.dataShadow1Color( pie ),
// params()->shadowPattern() ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic