[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/kst/kst
From: Rick Chern <rchern () interchange ! ubc ! ca>
Date: 2005-08-05 20:07:19
Message-ID: 1123272439.173851.17804.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 443331 by rchern:
fix tie box fill color
M +7 -5 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #443330:443331
@@ -2260,14 +2260,16 @@
void Kst2DPlot::updateTieBox(QPainter& p) {
QRect tr = GetTieBoxRegion();
- p.setPen(foregroundColor());
+ QColor fillColor;
if (isTied()) {
- p.fillRect(tr, QColor((foregroundColor().red() + backgroundColor().red()) / 2,
- (foregroundColor().green() + backgroundColor().green()) / 2,
- (foregroundColor().blue() + backgroundColor().blue()) / 2));
+ fillColor.setRgb((foregroundColor().red() + backgroundColor().red()) / 2,
+ (foregroundColor().green() + backgroundColor().green()) / 2,
+ (foregroundColor().blue() + backgroundColor().blue()) / 2);
} else {
- p.fillRect(tr, backgroundColor());
+ fillColor = backgroundColor();
}
+ p.setPen(foregroundColor());
+ p.setBrush(fillColor);
p.drawRect(tr);
if (_hasFocus) {
tr.setSize(tr.size() / 2);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic