summaryrefslogtreecommitdiffstats
path: root/khexedit/lib/kcolumnsview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /khexedit/lib/kcolumnsview.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-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/kcolumnsview.cpp')
-rw-r--r--khexedit/lib/kcolumnsview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/khexedit/lib/kcolumnsview.cpp b/khexedit/lib/kcolumnsview.cpp
index 1c93af8..c855b51 100644
--- a/khexedit/lib/kcolumnsview.cpp
+++ b/khexedit/lib/kcolumnsview.cpp
@@ -18,7 +18,7 @@
//#include <kdebug.h>
// qt specific
-#include <qpainter.h>
+#include <tqpainter.h>
// lib specific
#include "kcolumn.h"
#include "kcolumnsview.h"
@@ -28,8 +28,8 @@ using namespace KHE;
static bool DefaultHorizontalGrid = false;
-KColumnsView::KColumnsView( /*bool R,*/ QWidget *Parent, const char *Name, WFlags Flags )
- : QScrollView( Parent, Name, Flags | WRepaintNoErase /*| WStaticContents*/ ),
+KColumnsView::KColumnsView( /*bool R,*/ TQWidget *Parent, const char *Name, WFlags Flags )
+ : TQScrollView( Parent, Name, Flags | WRepaintNoErase /*| WStaticContents*/ ),
NoOfLines( 0 ),
LineHeight( 0 ),
TotalWidth( 0 ),
@@ -136,13 +136,13 @@ void KColumnsView::repaintView()
}
-void KColumnsView::paintEmptyArea( QPainter *P, int cx ,int cy, int cw, int ch)
+void KColumnsView::paintEmptyArea( TQPainter *P, int cx ,int cy, int cw, int ch)
{
P->fillRect( cx, cy, cw, ch, backgroundBrush() );
}
-void KColumnsView::drawContents( QPainter *P, int cx, int cy, int cw, int ch )
+void KColumnsView::drawContents( TQPainter *P, int cx, int cy, int cw, int ch )
{
//kdDebug(1501) << "drawContents(" << cx<<","<<cw<<"#"<<cy<<","<<ch<<")\n";
KPixelXs AffectedXs( cx, cw, true );
@@ -152,7 +152,7 @@ void KColumnsView::drawContents( QPainter *P, int cx, int cy, int cw, int ch )
KPixelYs AffectedYs( cy, ch, true );
// collect affected columns
- QPtrList<KColumn> RedrawColumns;
+ TQPtrList<KColumn> RedrawColumns;
for( KColumn *C=Columns.first(); C; C=Columns.next() )
if( C->isVisible() && C->overlaps(AffectedXs) )
RedrawColumns.append( C );
@@ -166,7 +166,7 @@ void KColumnsView::drawContents( QPainter *P, int cx, int cy, int cw, int ch )
if( AffectedLines.isValid() )
{
- QPainter Paint;
+ TQPainter Paint;
Paint.begin( &LineBuffer, this );
// starting painting with the first line
@@ -231,6 +231,6 @@ void KColumnsView::drawContents( QPainter *P, int cx, int cy, int cw, int ch )
}
// Implemented to get rid of a compiler warning
-void KColumnsView::drawContents( QPainter * ) {}
+void KColumnsView::drawContents( TQPainter * ) {}
#include "kcolumnsview.moc"