summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kcurve.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-01 18:39:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-01 18:39:56 +0000
commit7cc6b9d8e81b1f674a94cebc6a0e6f02452a872a (patch)
treeb0f6d2e1acba11603634edebd197c2598b4b82a0 /chalk/ui/kcurve.cc
parent84a75dbef9da6531bcb6f3ca9ab2216396b7b3bd (diff)
downloadkoffice-7cc6b9d8e81b1f674a94cebc6a0e6f02452a872a.tar.gz
koffice-7cc6b9d8e81b1f674a94cebc6a0e6f02452a872a.zip
Fix koffice FTBFS under gcc4.6
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1244302 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'chalk/ui/kcurve.cc')
-rw-r--r--chalk/ui/kcurve.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chalk/ui/kcurve.cc b/chalk/ui/kcurve.cc
index 47f9934a2..846139746 100644
--- a/chalk/ui/kcurve.cc
+++ b/chalk/ui/kcurve.cc
@@ -146,7 +146,7 @@ void KCurve::paintEvent(TQPaintEvent *)
pm.fill();
// Draw grid separators.
- p1.setPen(TQPen::TQPen(TQt::gray, 1, TQt::SolidLine));
+ p1.setPen(TQPen(TQt::gray, 1, TQt::SolidLine));
p1.drawLine(wWidth/3, 0, wWidth/3, wHeight);
p1.drawLine(2*wWidth/3, 0, 2*wWidth/3, wHeight);
p1.drawLine(0, wHeight/3, wWidth, wHeight/3);
@@ -154,7 +154,7 @@ void KCurve::paintEvent(TQPaintEvent *)
// Draw curve.
double curvePrevVal = getCurveValue(0.0);
- p1.setPen(TQPen::TQPen(TQt::black, 1, TQt::SolidLine));
+ p1.setPen(TQPen(TQt::black, 1, TQt::SolidLine));
for (x = 0 ; x < wWidth ; x++)
{
double curveX;
@@ -184,13 +184,13 @@ void KCurve::paintEvent(TQPaintEvent *)
if(p == m_grab_point)
{
- p1.setPen(TQPen::TQPen(TQt::red, 3, TQt::SolidLine));
+ p1.setPen(TQPen(TQt::red, 3, TQt::SolidLine));
p1.drawEllipse( int(curveX * wWidth) - 2,
wHeight - 2 - int(curveY * wHeight), 4, 4 );
}
else
{
- p1.setPen(TQPen::TQPen(TQt::red, 1, TQt::SolidLine));
+ p1.setPen(TQPen(TQt::red, 1, TQt::SolidLine));
p1.drawEllipse( int(curveX * wWidth) - 3,
wHeight - 3 - int(curveY * wHeight), 6, 6 );