summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:37:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:37:58 (GMT)
commit916d6d5c6f6c9d14c4c9a636582671c81447f54a (patch)
treeb859924ab8503fed25bbfbc7ea96b72b9dee34b0 /src/diagram.cpp
parenta54eecdf4b3c961ff41bc5d3ea6f21713e08f903 (diff)
downloadDoxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.zip
Doxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.tar.gz
Doxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.tar.bz2
mods for doxygen-0.49-991106
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index d25b334..4cbd7cb 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <qlist.h>
#include <qarray.h>
-#include <qtstream.h>
+#include <qtextstream.h>
#include <qfile.h>
#include "diagram.h"
@@ -155,7 +155,7 @@ static void writeMapArea(QTextStream &t,ClassDef *cd,int x,int y,int w,int h)
t << "href=\"" << cd->getOutputFileBase() << ".html\" ";
t << "ALT=\"" << cd->name();
t << "\" shape=\"rect\" coords=\"" << x << "," << y << ",";
- t << x+w << "," << y+h << "\">" << endl;
+ t << (x+w) << "," << (y+h) << "\">" << endl;
}
}
//-----------------------------------------------------------------------------
@@ -620,13 +620,13 @@ void TreeDiagram::drawConnectors(QTextStream &t,Image *image,
t << protToString(di->protection()) << endl;
if (doBase)
{
- t << "1 " << di->xPos()/(float)gridWidth << " "
- << di->yPos()/(float)gridHeight+superRows-1 << " in\n";
+ t << "1 " << (di->xPos()/(float)gridWidth) << " "
+ << (di->yPos()/(float)gridHeight+superRows-1) << " in\n";
}
else
{
- t << "0 " << di->xPos()/(float)gridWidth << " "
- << (float)superRows-0.25-di->yPos()/(float)gridHeight
+ t << "0 " << (di->xPos()/(float)gridWidth) << " "
+ << ((float)superRows-0.25-di->yPos()/(float)gridHeight)
<< " in\n";
}
}
@@ -740,7 +740,7 @@ void TreeDiagram::drawConnectors(QTextStream &t,Image *image,
}
else
{
- t << xf << " " << ysf + 0.25 << " " << yf << " vedge\n";
+ t << xf << " " << (ysf + 0.25) << " " << yf << " vedge\n";
}
}
}
@@ -787,12 +787,12 @@ void TreeDiagram::drawConnectors(QTextStream &t,Image *image,
if (doBase)
{
t << "1 " << di->xPos()/(float)gridWidth << " "
- << di->yPos()/(float)gridHeight+superRows-1 << " in\n";
+ << (di->yPos()/(float)gridHeight+superRows-1) << " in\n";
}
else
{
t << "0 " << di->xPos()/(float)gridWidth << " "
- << (float)superRows-0.25-di->yPos()/(float)gridHeight
+ << ((float)superRows-0.25-di->yPos()/(float)gridHeight)
<< " in\n";
}
}
@@ -827,12 +827,12 @@ void TreeDiagram::drawConnectors(QTextStream &t,Image *image,
if (doBase)
{
t << "0 " << di->xPos()/(float)gridWidth << " "
- << di->yPos()/(float)gridHeight+superRows-1 << " out\n";
+ << (di->yPos()/(float)gridHeight+superRows-1) << " out\n";
}
else
{
t << "1 " << di->xPos()/(float)gridWidth << " "
- << (float)superRows-1.75-di->yPos()/(float)gridHeight
+ << ((float)superRows-1.75-di->yPos()/(float)gridHeight)
<< " out\n";
}
}
@@ -863,14 +863,14 @@ void TreeDiagram::drawConnectors(QTextStream &t,Image *image,
{
t << first->xPos()/(float)gridWidth << " "
<< last->xPos()/(float)gridWidth << " "
- << first->yPos()/(float)gridHeight+superRows-1
+ << (first->yPos()/(float)gridHeight+superRows-1)
<< " conn\n";
}
else
{
t << first->xPos()/(float)gridWidth << " "
<< last->xPos()/(float)gridWidth << " "
- << (float)superRows-first->yPos()/(float)gridHeight
+ << ((float)superRows-first->yPos()/(float)gridHeight)
<< " conn\n";
}
}