summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewEventItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdgantt/KDGanttViewEventItem.cpp')
-rw-r--r--kdgantt/KDGanttViewEventItem.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kdgantt/KDGanttViewEventItem.cpp b/kdgantt/KDGanttViewEventItem.cpp
index aa6e707db..01172af82 100644
--- a/kdgantt/KDGanttViewEventItem.cpp
+++ b/kdgantt/KDGanttViewEventItem.cpp
@@ -53,8 +53,8 @@
is specified, a unique name will be generated
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, view, lvtext, name )
{
initItem();
@@ -70,8 +70,8 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
is specified, a unique name will be generated
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, parent, lvtext, name )
{
initItem();
@@ -90,8 +90,8 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
KDGanttViewItem* after,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, view, after, lvtext, name )
{
@@ -110,8 +110,8 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
KDGanttViewItem* after,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, parent, after, lvtext, name )
{
@@ -136,7 +136,7 @@ KDGanttViewEventItem::~KDGanttViewEventItem()
\param start the start time
\sa startTime()
*/
-void KDGanttViewEventItem::setStartTime( const QDateTime& start )
+void KDGanttViewEventItem::setStartTime( const TQDateTime& start )
{
if (! start.isValid() ) {
qDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
@@ -160,11 +160,11 @@ void KDGanttViewEventItem::setStartTime( const QDateTime& start )
the start time is set to this lead time automatically.
\param leadTimeStart the start time of the lead time; pass an
- invalid QDateTime object in order to turn the lead time off.
+ invalid TQDateTime object in order to turn the lead time off.
\sa leadTime()
*/
-void KDGanttViewEventItem::setLeadTime( const QDateTime& leadTimeStart )
+void KDGanttViewEventItem::setLeadTime( const TQDateTime& leadTimeStart )
{
if (!myLeadTime) myLeadTime = new QDateTime;
*myLeadTime = leadTimeStart;
@@ -182,11 +182,11 @@ void KDGanttViewEventItem::setLeadTime( const QDateTime& leadTimeStart )
yes, when the lead time starts.
\return if the event item is shown with a lead time line, returns
- the QDateTime object representing the start of the lead time,
- otherwise returns an invalid QDateTime object
+ the TQDateTime object representing the start of the lead time,
+ otherwise returns an invalid TQDateTime object
\sa setLeadTime()
*/
-QDateTime KDGanttViewEventItem::leadTime() const
+TQDateTime KDGanttViewEventItem::leadTime() const
{
if(myLeadTime)
return *myLeadTime;
@@ -255,9 +255,9 @@ void KDGanttViewEventItem::showItem(bool show, int coordY)
int floatStartX = myGanttView->myTimeHeader->getCoordX(myFloatStartTime);
int hei = startShape->boundingRect().height();
// FIXME: Configurable colors
- QBrush b(startShape->brush().color(), Dense4Pattern);
+ TQBrush b(startShape->brush().color(), Dense4Pattern);
floatStartTemp->setBrush(b);
- floatStartTemp->setPen(QPen(gray));
+ floatStartTemp->setPen(TQPen(gray));
if (floatStartX < startX) {
floatStartTemp->setSize(startX - floatStartX, hei/2);
floatStartTemp->move(floatStartX, allY-hei/4);
@@ -272,9 +272,9 @@ void KDGanttViewEventItem::showItem(bool show, int coordY)
int floatEndX = myGanttView->myTimeHeader->getCoordX(myFloatEndTime);
int hei = startShape->boundingRect().height();
// FIXME: Configurable colors
- QBrush b(startShape->brush().color(), Dense4Pattern);
+ TQBrush b(startShape->brush().color(), Dense4Pattern);
floatEndTemp->setBrush(b);
- floatEndTemp->setPen(QPen(gray));
+ floatEndTemp->setPen(TQPen(gray));
if (floatEndX > startX) {
floatEndTemp->setSize(floatEndX - startX, hei/2);
floatEndTemp->move(startX, allY-hei/4);