From 7cc6b9d8e81b1f674a94cebc6a0e6f02452a872a Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 1 Aug 2011 18:39:56 +0000 Subject: 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 --- chalk/ui/kcurve.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chalk/ui') 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 ); -- cgit v1.2.3