From 0a6e0958c03e41c87b15557b6f407874f20c2f8d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:39:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalzium/src/plotwidget.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kalzium/src/plotwidget.cpp') diff --git a/kalzium/src/plotwidget.cpp b/kalzium/src/plotwidget.cpp index 3a6f8530..2619b504 100644 --- a/kalzium/src/plotwidget.cpp +++ b/kalzium/src/plotwidget.cpp @@ -19,27 +19,27 @@ #include //QT-Includes -#include +#include PlotWidget::PlotWidget( double x1, double x2, double y1, double y2, - QWidget *parent, + TQWidget *parent, const char* name) : KPlotWidget( x1, x2, y1, y2, parent, name ) { m_connectPoints = false; } -void PlotWidget::drawObjects( QPainter *p ) +void PlotWidget::drawObjects( TQPainter *p ) { // let the KPlotWidget draw the default stuff first KPlotWidget::drawObjects(p); // then draw the connecting lines if (!m_connectPoints) return; // bail out if connect points is not enabled - QPoint old; // used to remember last coordinates + TQPoint old; // used to remember last coordinates bool first = true; for ( KPlotObject *po = ObjectList.first(); po; po = ObjectList.next() ) { @@ -49,11 +49,11 @@ void PlotWidget::drawObjects( QPainter *p ) if (po->type() != KPlotObject::POINTS) continue; // draw the connecting lines - p->setPen( QColor( po->color() ) ); - p->setBrush( QColor( po->color() ) ); + p->setPen( TQColor( po->color() ) ); + p->setBrush( TQColor( po->color() ) ); for ( DPoint *dp = po->points()->first(); dp; dp = po->points()->next() ) { - QPoint q = dp->qpoint( PixRect, DataRect ); + TQPoint q = dp->qpoint( PixRect, DataRect ); if ( first ) first = false; -- cgit v1.2.1