summaryrefslogtreecommitdiffstats
path: root/parts/classview/digraphview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/classview/digraphview.cpp')
-rw-r--r--parts/classview/digraphview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/parts/classview/digraphview.cpp b/parts/classview/digraphview.cpp
index 8bb8e963..1e2f7dfd 100644
--- a/parts/classview/digraphview.cpp
+++ b/parts/classview/digraphview.cpp
@@ -43,8 +43,8 @@ struct DigraphEdge
};
-DigraphView::DigraphView(TQWidget *parent, const char *name)
- : TQScrollView(parent, name, WRepaintNoErase|WStaticContents|WResizeNoErase)
+DigraphView::DigraphView(TQWidget *tqparent, const char *name)
+ : TQScrollView(tqparent, name, WRepaintNoErase|WStaticContents|WResizeNoErase)
{
viewport()->setBackgroundMode(PaletteBase);
@@ -173,13 +173,13 @@ TQStringList DigraphView::splitLine(TQString str)
while (!str.isEmpty()) {
if (str[0] == '"') {
- int pos = str.find('"', 1);
+ int pos = str.tqfind('"', 1);
if (pos == -1)
pos = str.length();
result << str.mid(1, pos-1);
str.remove(0, pos+1);
} else {
- int pos = str.find(' ');
+ int pos = str.tqfind(' ');
if (pos == -1)
pos = str.length();
result << str.left(pos);
@@ -235,7 +235,7 @@ void DigraphView::process( const TQString& file, const TQString& ext )
TQTextStream &is = *ifile.textStream();
is << "digraph G {" << endl;
is << "rankdir=LR;" << endl;
- is << "node [shape=box,fontname=Helvetica,fontsize=12];" << endl;
+ is << "node [tqshape=box,fontname=Helvetica,fontsize=12];" << endl;
TQStringList::Iterator it;
for (it = inputs.begin(); it != inputs.end(); ++it)
is << (*it) << endl;
@@ -313,7 +313,7 @@ void DigraphView::drawContents(TQPainter* p, int clipx, int clipy, int clipw, in
triangle[0] = p2 + TQPoint((int)(d11+d21),(int)(d12+d22));
triangle[1] = p2 + TQPoint((int)(d11-d21),(int)(d12-d22));
triangle[2] = p2;
- p->drawPolygon(triangle, true);
+ p->tqdrawPolygon(triangle, true);
}
}
@@ -323,7 +323,7 @@ void DigraphView::contentsMousePressEvent(TQMouseEvent *e)
TQPtrListIterator<DigraphNode> it1(nodes);
for (; it1.current(); ++it1) {
TQRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h);
- if (r.contains(e->pos())) {
+ if (r.tqcontains(e->pos())) {
if (selNode) {
TQRect oldr(selNode->x-selNode->w/2, selNode->y-selNode->h/2,
selNode->w, selNode->h);
@@ -338,7 +338,7 @@ void DigraphView::contentsMousePressEvent(TQMouseEvent *e)
}
-TQSize DigraphView::sizeHint() const
+TQSize DigraphView::tqsizeHint() const
{
if (width == -1)
return TQSize(100, 100); // arbitrary