summaryrefslogtreecommitdiffstats
path: root/kgantt/kgantt/xQGanttListViewPort.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgantt/kgantt/xQGanttListViewPort.cpp')
-rw-r--r--kgantt/kgantt/xQGanttListViewPort.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kgantt/kgantt/xQGanttListViewPort.cpp b/kgantt/kgantt/xQGanttListViewPort.cpp
index 573d8fbe..a792ad99 100644
--- a/kgantt/kgantt/xQGanttListViewPort.cpp
+++ b/kgantt/kgantt/xQGanttListViewPort.cpp
@@ -7,26 +7,26 @@
#include "xQGanttListViewPort.h"
-#include <qcolor.h>
+#include <tqcolor.h>
int xQGanttListViewPort::_ListViewCounter = 0;
-xQGanttListViewPort::xQGanttListViewPort(KGanttItem* toplevelitem, QWidget* parent,
+xQGanttListViewPort::xQGanttListViewPort(KGanttItem* toplevelitem, TQWidget* parent,
const char * name, WFlags f )
- : QFrame(parent,name,f)
+ : TQFrame(parent,name,f)
{
_toplevelitem = toplevelitem;
- setBackgroundColor(QColor(white));
+ setBackgroundColor(TQColor(white));
_barviewport = NULL;
_width = 1000;
- brush1 = QBrush(QColor(200,200,230));
- brush2 = QBrush(QColor(240,240,240));
+ brush1 = TQBrush(TQColor(200,200,230));
+ brush2 = TQBrush(TQColor(240,240,240));
}
@@ -50,16 +50,16 @@ xQGanttListViewPort::setBarViewPort(xQGanttBarViewPort* v)
printf("setBarViewPort()\n");
- connect(_barviewport, SIGNAL(resized()),
- this, SLOT(barViewResized()));
+ connect(_barviewport, TQT_SIGNAL(resized()),
+ this, TQT_SLOT(barViewResized()));
- connect(_barviewport, SIGNAL(recalculated()),
- this, SLOT(update()));
+ connect(_barviewport, TQT_SIGNAL(recalculated()),
+ this, TQT_SLOT(update()));
/*
- connect(_barviewport, SIGNAL(contentsRepainted()),
- this, SLOT(barViewRepainted()));
+ connect(_barviewport, TQT_SIGNAL(contentsRepainted()),
+ this, TQT_SLOT(barViewRepainted()));
*/
}
@@ -85,7 +85,7 @@ xQGanttListViewPort::barViewResized()
void
-xQGanttListViewPort::drawContents(QPainter* p, int x1, int y1, int x2, int y2)
+xQGanttListViewPort::drawContents(TQPainter* p, int x1, int y1, int x2, int y2)
//////////////////////////////////////////////////////////////////////////////
{
/*printf("\nxQGanttListViewPort::drawContents(%d,%d,%d,%d)\n",
@@ -95,7 +95,7 @@ xQGanttListViewPort::drawContents(QPainter* p, int x1, int y1, int x2, int y2)
_ListViewCounter = 0;
if(_barviewport) {
- drawItem(_toplevelitem, p, QRect(x1, y1, x2-x1, y2-y1), 5 );
+ drawItem(_toplevelitem, p, TQRect(x1, y1, x2-x1, y2-y1), 5 );
}
}
@@ -103,7 +103,7 @@ xQGanttListViewPort::drawContents(QPainter* p, int x1, int y1, int x2, int y2)
void
-xQGanttListViewPort::drawItem(KGanttItem* item, QPainter* p, const QRect& rect,
+xQGanttListViewPort::drawItem(KGanttItem* item, TQPainter* p, const TQRect& rect,
int offsetX )
/////////////////////////////////////////////////////////////////////////////
{
@@ -118,7 +118,7 @@ xQGanttListViewPort::drawItem(KGanttItem* item, QPainter* p, const QRect& rect,
((tpos->_screenY + tpos->_screenH)+5 >= rect.y() &&
(tpos->_screenY + tpos->_screenH)-5 <= rect.y() + rect.height() ) ) {
- p->setPen(QPen(QColor(black)));
+ p->setPen(TQPen(TQColor(black)));
int y = tpos->_screenY;
int h = tpos->_screenH;
@@ -130,7 +130,7 @@ xQGanttListViewPort::drawItem(KGanttItem* item, QPainter* p, const QRect& rect,
p->fillRect(0 + margin, y + margin,
_width - 2* margin, h - 2* margin, brush2);
- QString str = item->getText() + " [" +
+ TQString str = item->getText() + " [" +
item->getStart().toString() + " / " +
item->getEnd().toString() + "]";
@@ -149,7 +149,7 @@ xQGanttListViewPort::drawItem(KGanttItem* item, QPainter* p, const QRect& rect,
}
- p->setPen(QPen(QColor(blue),2));
+ p->setPen(TQPen(TQColor(blue),2));
p->drawLine(offsetX + 3, tpos->_textPosY + 3,
offsetX + 3, tpos->_screenY + tpos->_screenHS - 3);
@@ -162,7 +162,7 @@ void
xQGanttListViewPort::update(int x1, int y1, int x2, int y2)
/////////////////////////////////////////////////
{
- QPainter p(this);
+ TQPainter p(this);
/*
printf("\nxQGanttListViewPort::update(%d,%d,%d,%d)\n",