diff options
Diffstat (limited to 'korganizer/plugins/timespanview/timespanwidget.cpp')
-rw-r--r-- | korganizer/plugins/timespanview/timespanwidget.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/korganizer/plugins/timespanview/timespanwidget.cpp b/korganizer/plugins/timespanview/timespanwidget.cpp index 23d781f45..0e8f0c4b9 100644 --- a/korganizer/plugins/timespanview/timespanwidget.cpp +++ b/korganizer/plugins/timespanview/timespanwidget.cpp @@ -22,11 +22,11 @@ without including the source code for Qt in the source distribution. */ -#include <qsplitter.h> -#include <qlistview.h> -#include <qlayout.h> -#include <qheader.h> -#include <qpushbutton.h> +#include <tqsplitter.h> +#include <tqlistview.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqpushbutton.h> #include <klocale.h> #include <kdebug.h> @@ -39,19 +39,19 @@ #include "timespanwidget.h" #include "timespanwidget.moc" -TimeSpanWidget::TimeSpanWidget( QWidget *parent, const char *name ) : - QWidget( parent, name ) +TimeSpanWidget::TimeSpanWidget( TQWidget *parent, const char *name ) : + TQWidget( parent, name ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); - mSplitter = new QSplitter( this ); + mSplitter = new TQSplitter( this ); topLayout->addWidget( mSplitter ); - mList = new QListView( mSplitter ); + mList = new TQListView( mSplitter ); mList->addColumn( i18n("Summary") ); - QWidget *rightPane = new QWidget( mSplitter ); - QBoxLayout *rightPaneLayout = new QVBoxLayout( rightPane ); + TQWidget *rightPane = new TQWidget( mSplitter ); + TQBoxLayout *rightPaneLayout = new TQVBoxLayout( rightPane ); mTimeLine = new TimeLine( rightPane ); mTimeLine->setFixedHeight( mList->header()->height() ); @@ -60,44 +60,44 @@ TimeSpanWidget::TimeSpanWidget( QWidget *parent, const char *name ) : mLineView = new LineView( rightPane ); rightPaneLayout->addWidget( mLineView ); - QBoxLayout *buttonLayout = new QHBoxLayout( rightPaneLayout ); + TQBoxLayout *buttonLayout = new TQHBoxLayout( rightPaneLayout ); - QPushButton *zoomInButton = new QPushButton( i18n("Zoom In"), rightPane ); - connect( zoomInButton, SIGNAL( clicked() ), SLOT( zoomIn() ) ); + TQPushButton *zoomInButton = new TQPushButton( i18n("Zoom In"), rightPane ); + connect( zoomInButton, TQT_SIGNAL( clicked() ), TQT_SLOT( zoomIn() ) ); buttonLayout->addWidget( zoomInButton ); - QPushButton *zoomOutButton = new QPushButton( i18n("Zoom Out"), rightPane ); - connect( zoomOutButton, SIGNAL( clicked() ), SLOT( zoomOut() ) ); + TQPushButton *zoomOutButton = new TQPushButton( i18n("Zoom Out"), rightPane ); + connect( zoomOutButton, TQT_SIGNAL( clicked() ), TQT_SLOT( zoomOut() ) ); buttonLayout->addWidget( zoomOutButton ); - QPushButton *centerButton = new QPushButton( i18n("Center View"), rightPane ); - connect( centerButton, SIGNAL( clicked() ), SLOT( centerView() ) ); + TQPushButton *centerButton = new TQPushButton( i18n("Center View"), rightPane ); + connect( centerButton, TQT_SIGNAL( clicked() ), TQT_SLOT( centerView() ) ); buttonLayout->addWidget( centerButton ); - connect(mLineView->horizontalScrollBar(),SIGNAL(valueChanged(int)), - mTimeLine,SLOT(setContentsPos(int))); + connect(mLineView->horizontalScrollBar(),TQT_SIGNAL(valueChanged(int)), + mTimeLine,TQT_SLOT(setContentsPos(int))); } TimeSpanWidget::~TimeSpanWidget() { } -QValueList<int> TimeSpanWidget::splitterSizes() +TQValueList<int> TimeSpanWidget::splitterSizes() { return mSplitter->sizes(); } -void TimeSpanWidget::setSplitterSizes( QValueList<int> sizes ) +void TimeSpanWidget::setSplitterSizes( TQValueList<int> sizes ) { mSplitter->setSizes( sizes ); } void TimeSpanWidget::addItem( KCal::Event *event ) { - new QListViewItem( mList, event->summary() ); + new TQListViewItem( mList, event->summary() ); - QDateTime startDt = event->dtStart(); - QDateTime endDt = event->dtEnd(); + TQDateTime startDt = event->dtStart(); + TQDateTime endDt = event->dtEnd(); // kdDebug(5850) << "TimeSpanWidget::addItem(): start: " << startDt.toString() // << " end: " << endDt.toString() << endl; @@ -130,7 +130,7 @@ void TimeSpanWidget::updateView() #endif } -void TimeSpanWidget::setDateRange( const QDateTime &start, const QDateTime &end ) +void TimeSpanWidget::setDateRange( const TQDateTime &start, const TQDateTime &end ) { mStartDate = start; mEndDate = end; @@ -140,12 +140,12 @@ void TimeSpanWidget::setDateRange( const QDateTime &start, const QDateTime &end mSecsPerPixel = mStartDate.secsTo( mEndDate ) / mLineView->pixelWidth(); } -QDateTime TimeSpanWidget::startDateTime() +TQDateTime TimeSpanWidget::startDateTime() { return mStartDate; } -QDateTime TimeSpanWidget::endDateTime() +TQDateTime TimeSpanWidget::endDateTime() { return mEndDate; } @@ -168,7 +168,7 @@ void TimeSpanWidget::zoomOut() void TimeSpanWidget::centerView() { - QScrollBar *scrollBar = mLineView->horizontalScrollBar(); + TQScrollBar *scrollBar = mLineView->horizontalScrollBar(); int min = scrollBar->minValue(); int max = scrollBar->maxValue(); scrollBar->setValue( min + (max-min) / 2 ); |