summaryrefslogtreecommitdiffstats
path: root/kmid/kdisptext.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /kmid/kdisptext.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/kdisptext.cpp')
-rw-r--r--kmid/kdisptext.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmid/kdisptext.cpp b/kmid/kdisptext.cpp
index cc1eb4d3..2842608c 100644
--- a/kmid/kdisptext.cpp
+++ b/kmid/kdisptext.cpp
@@ -40,7 +40,7 @@
//#define DRAW_BOUNDING_RECTS
-KDisplayText::KDisplayText(TQWidget *parent,const char *name) : TQScrollView(parent,name)
+KDisplayText::KDisplayText(TQWidget *tqparent,const char *name) : TQScrollView(tqparent,name)
{
first_line_[0]=first_line_[1]=NULL;
linked_list_[0]=linked_list_[1]=NULL;
@@ -122,10 +122,10 @@ void KDisplayText::ClearEv(bool totally)
RemoveLinkedList();
if (totally)
{
- killTimers();
+ TQT_TQOBJECT(this)->killTimers();
autoscrollv=0;
resizeContents(0,0);
- viewport()->repaint(TRUE);
+ viewport()->tqrepaint(TRUE);
}
}
@@ -367,7 +367,7 @@ void KDisplayText::CursorToHome(void)
setContentsPos(0,0);
- viewport()->repaint(true);
+ viewport()->tqrepaint(true);
}
void KDisplayText::PaintIn(int type)
@@ -425,14 +425,14 @@ void KDisplayText::PaintIn(int type)
autoscrollv+=qfmetr->lineSpacing();
if (b) startTimer(100);
else {
- killTimers();
+ TQT_TQOBJECT(this)->killTimers();
startTimer(100/(autoscrollv/qfmetr->lineSpacing()+1));
}
}
// scrollBy(0,qfmetr->lineSpacing());
}
}
- if (paint) repaintContents(tmp->r);
+ if (paint) tqrepaintContents(tmp->r);
}
void KDisplayText::gotomsec(ulong i)
@@ -484,10 +484,10 @@ void KDisplayText::gotomsec(ulong i)
}
- killTimers();
+ TQT_TQOBJECT(this)->killTimers();
autoscrollv=0;
setContentsPos(0,first_line->ypos);
- viewport()->repaint();
+ viewport()->tqrepaint();
}
}
@@ -508,7 +508,7 @@ void KDisplayText::fontChanged(void)
qfmetr=new TQFontMetrics(*qtextfont);
calculatePositions();
nvisiblelines=height()/qfmetr->lineSpacing();
- viewport()->repaint(TRUE);
+ viewport()->tqrepaint(TRUE);
}
void KDisplayText::ChangeTypeOfTextEvents(int type)
@@ -534,7 +534,7 @@ void KDisplayText::ChangeTypeOfTextEvents(int type)
setContentsPos(0,first_line->ypos);
}
- viewport()->repaint(TRUE);
+ viewport()->tqrepaint(TRUE);
}
int KDisplayText::ChooseTypeOfTextEvents(void)