diff options
Diffstat (limited to 'korganizer/plugins/timespanview/timeline.cpp')
-rw-r--r-- | korganizer/plugins/timespanview/timeline.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/korganizer/plugins/timespanview/timeline.cpp b/korganizer/plugins/timespanview/timeline.cpp index 0d679e192..19ed75818 100644 --- a/korganizer/plugins/timespanview/timeline.cpp +++ b/korganizer/plugins/timespanview/timeline.cpp @@ -22,15 +22,15 @@ without including the source code for Qt in the source distribution. */ -#include <qpainter.h> +#include <tqpainter.h> #include <kdebug.h> #include "timeline.h" #include "timeline.moc" -TimeLine::TimeLine( QWidget *parent, const char *name ) : - QScrollView( parent, name ) +TimeLine::TimeLine( TQWidget *parent, const char *name ) : + TQScrollView( parent, name ) { mPixelWidth = 1000; @@ -46,7 +46,7 @@ TimeLine::~TimeLine() { } -void TimeLine::drawContents(QPainter* p, int cx, int cy, int cw, int ch) +void TimeLine::drawContents(TQPainter* p, int cx, int cy, int cw, int ch) { int spacingX = mDaySpacing; int offsetX = mDayOffset; @@ -59,14 +59,14 @@ void TimeLine::drawContents(QPainter* p, int cx, int cy, int cw, int ch) while (x < cx + cw) { // kdDebug(5850) << " x: " << x << endl; p->drawLine(x,cy,x,cy+ch); - p->drawText( x + 5, 15, QString::number( mStartDate.addDays( cell + 1 ).date().day() ) ); + p->drawText( x + 5, 15, TQString::number( mStartDate.addDays( cell + 1 ).date().day() ) ); x += spacingX; cell++; } } -void TimeLine::setDateRange( const QDateTime &start, const QDateTime &end ) +void TimeLine::setDateRange( const TQDateTime &start, const TQDateTime &end ) { mStartDate = start; mEndDate = end; @@ -75,7 +75,7 @@ void TimeLine::setDateRange( const QDateTime &start, const QDateTime &end ) mDaySpacing = 60 * 60 * 24 / mSecsPerPixel; - mDayOffset = QDateTime( mStartDate.date() ).secsTo( mStartDate ) / mSecsPerPixel; + mDayOffset = TQDateTime( mStartDate.date() ).secsTo( mStartDate ) / mSecsPerPixel; kdDebug(5850) << "TimeLines::setDateRange(): mDaySpacing: " << mDaySpacing << " mDayOffset: " << mDayOffset << " mSecsPerPixel: " << mSecsPerPixel << endl; @@ -83,5 +83,5 @@ void TimeLine::setDateRange( const QDateTime &start, const QDateTime &end ) void TimeLine::setContentsPos( int pos ) { - QScrollView::setContentsPos ( pos, 0 ); + TQScrollView::setContentsPos ( pos, 0 ); } |