diff options
Diffstat (limited to 'kugar/kudesigner_lib/line.cpp')
-rw-r--r-- | kugar/kudesigner_lib/line.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kugar/kudesigner_lib/line.cpp b/kugar/kudesigner_lib/line.cpp index 75631b1b..caff18a1 100644 --- a/kugar/kudesigner_lib/line.cpp +++ b/kugar/kudesigner_lib/line.cpp @@ -20,7 +20,7 @@ #include <klocale.h> -#include <qpainter.h> +#include <tqpainter.h> #include <koproperty/property.h> @@ -41,19 +41,19 @@ Line::Line( int x, int y, int width, int height, Canvas *canvas ) : props.addProperty( new Property( "Y2", y + height, i18n( "Y2" ), i18n( "Y2" ), KoProperty::Integer ), "Line" ); - props.addProperty( new Property( "Color", QColor( 0, 0, 0 ), i18n( "Color" ), i18n( "Color" ), KoProperty::Color ), "Line" ); + props.addProperty( new Property( "Color", TQColor( 0, 0, 0 ), i18n( "Color" ), i18n( "Color" ), KoProperty::Color ), "Line" ); props.addProperty( new Property( "Width", 1, i18n( "Width" ), i18n( "Width" ), KoProperty::Integer ), "Line" ); props.addProperty( new Property( "Style", 1, i18n( "Line Style" ), i18n( "Line Style" ), KoProperty::LineStyle ), "Line" ); } -QString Line::getXml() +TQString Line::getXml() { return "\t\t<Line" + ReportItem::getXml() + " />\n"; } -QPen Line::getPenForShape() +TQPen Line::getPenForShape() { PenStyle style = SolidLine; switch ( props[ "Style" ].value().toInt() ) @@ -77,11 +77,11 @@ QPen Line::getPenForShape() style = DashDotDotLine; break; } - return QPen( QColor( props[ "Color" ].value().toColor() ), + return TQPen( TQColor( props[ "Color" ].value().toColor() ), props[ "Width" ].value().toInt(), style ); } -void Line::draw( QPainter &painter ) +void Line::draw( TQPainter &painter ) { //update dimensions if ( !section() ) @@ -93,14 +93,14 @@ void Line::draw( QPainter &painter ) //draw border and background painter.setPen( getPenForShape() ); - painter.setBrush( QColor( 0, 0, 0 ) ); + painter.setBrush( TQColor( 0, 0, 0 ) ); painter.drawLine( props[ "X1" ].value().toInt() + ( int ) section() ->x(), props[ "Y1" ].value().toInt() + ( int ) section() ->y(), props[ "X2" ].value().toInt() + ( int ) section() ->x(), props[ "Y2" ].value().toInt() + ( int ) section() ->y() ); - painter.setPen( QColor( 0, 0, 0 ) ); - painter.setBrush( QColor( 0, 0, 0 ) ); + painter.setPen( TQColor( 0, 0, 0 ) ); + painter.setBrush( TQColor( 0, 0, 0 ) ); // painter.drawRect(topLeftResizableRect()); // painter.drawRect(topRightResizableRect()); // painter.drawRect(bottomLeftResizableRect()); @@ -113,7 +113,7 @@ void Line::setSection( Band *section ) { props[ "X1" ].setValue( ( int ) ( x() - section->x() ) ); props[ "Y1" ].setValue( ( int ) ( y() - section->y() ) ); - parentSection = section; + tqparentSection = section; } void Line::updateGeomProps() |