diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /khexedit/lib/koffsetcolumn.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khexedit/lib/koffsetcolumn.cpp')
-rw-r--r-- | khexedit/lib/koffsetcolumn.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/khexedit/lib/koffsetcolumn.cpp b/khexedit/lib/koffsetcolumn.cpp index 6bd6d09..fb8e694 100644 --- a/khexedit/lib/koffsetcolumn.cpp +++ b/khexedit/lib/koffsetcolumn.cpp @@ -15,7 +15,7 @@ ***************************************************************************/ // qt specific -#include "qpainter.h" +#include "tqpainter.h" // lib specific #include "kcolumnsview.h" #include "koffsetcolumn.h" @@ -40,36 +40,36 @@ KOffsetColumn::~KOffsetColumn() } -void KOffsetColumn::paintLine( QPainter *P, int Line ) +void KOffsetColumn::paintLine( TQPainter *P, int Line ) { - const QColor &ButtonColor = View->colorGroup().button(); - P->fillRect( 0,0,width(),LineHeight, QBrush(ButtonColor,Qt::SolidPattern) ); + const TQColor &ButtonColor = View->colorGroup().button(); + P->fillRect( 0,0,width(),LineHeight, TQBrush(ButtonColor,Qt::SolidPattern) ); printFunction()( CodedOffset,FirstLineOffset+Delta*Line ); - P->drawText( 0, DigitBaseLine, QString().append(CodedOffset) ); + P->drawText( 0, DigitBaseLine, TQString().append(CodedOffset) ); } -void KOffsetColumn::paintFirstLine( QPainter *P, KPixelXs, int FirstLine ) +void KOffsetColumn::paintFirstLine( TQPainter *P, KPixelXs, int FirstLine ) { PaintLine = FirstLine; paintLine( P, PaintLine++ ); } -void KOffsetColumn::paintNextLine( QPainter *P ) +void KOffsetColumn::paintNextLine( TQPainter *P ) { paintLine( P, PaintLine++ ); } -void KOffsetColumn::paintEmptyColumn( QPainter *P, KPixelXs Xs, KPixelYs Ys ) +void KOffsetColumn::paintEmptyColumn( TQPainter *P, KPixelXs Xs, KPixelYs Ys ) { Xs.restrictTo( XSpan ); - const QColor &ButtonColor = View->colorGroup().button(); - P->fillRect( Xs.start(), Ys.start(), Xs.width(), Ys.width(), QBrush(ButtonColor,Qt::SolidPattern) ); + const TQColor &ButtonColor = View->colorGroup().button(); + P->fillRect( Xs.start(), Ys.start(), Xs.width(), Ys.width(), TQBrush(ButtonColor,Qt::SolidPattern) ); } void KOffsetColumn::setFormat( KOffsetFormat::KFormat F ) |