diff options
Diffstat (limited to 'korganizer/koagenda.cpp')
-rw-r--r-- | korganizer/koagenda.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index a0aaddbca..bf25165b3 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -21,8 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include <assert.h> @@ -67,15 +67,15 @@ MarcusBains::MarcusBains(KOAgenda *_agenda,const char *name ) { setLineWidth(0); setMargin(0); - setBackgroundColor(Qt::red); + setBackgroundColor(TQt::red); minutes = new TQTimer(this); connect(minutes, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateLocation())); minutes->start(0, true); mTimeBox = new TQLabel(this); - mTimeBox->tqsetAlignment(Qt::AlignRight | Qt::AlignBottom); + mTimeBox->tqsetAlignment(TQt::AlignRight | TQt::AlignBottom); TQPalette pal = mTimeBox->palette(); - pal.setColor(TQColorGroup::Foreground, Qt::red); + pal.setColor(TQColorGroup::Foreground, TQt::red); mTimeBox->setPalette(pal); mTimeBox->setAutoMask(true); @@ -172,8 +172,8 @@ void MarcusBains::updateLocationRecalc( bool recalculate ) Create an agenda widget with rows rows and columns columns. */ KOAgenda::KOAgenda( int columns, int rows, int rowSize, CalendarView *calendarView, - TQWidget *parent, const char *name, WFlags f ) - : TQScrollView( parent, name, f ), mChanger( 0 ) + TQWidget *tqparent, const char *name, WFlags f ) + : TQScrollView( tqparent, name, f ), mChanger( 0 ) { mColumns = columns; mRows = rows; @@ -195,8 +195,8 @@ KOAgenda::KOAgenda( int columns, int rows, int rowSize, CalendarView *calendarVi Create an agenda widget with columns columns and one row. This is used for all-day events. */ -KOAgenda::KOAgenda( int columns, CalendarView *calendarView, TQWidget *parent, - const char *name, WFlags f ) : TQScrollView( parent, name, f ) +KOAgenda::KOAgenda( int columns, CalendarView *calendarView, TQWidget *tqparent, + const char *name, WFlags f ) : TQScrollView( tqparent, name, f ) { mColumns = columns; mRows = 1; @@ -279,7 +279,7 @@ void KOAgenda::init() mItemMoved = false; mSelectedItem = 0; - mSelectedUid = TQString::null; + mSelectedUid = TQString(); setAcceptDrops( true ); installEventFilter( this ); @@ -385,7 +385,7 @@ bool KOAgenda::eventFilter ( TQObject *object, TQEvent *event ) case TQEvent::MouseButtonRelease: case TQEvent::MouseMove: return eventFilter_mouse( object, static_cast<TQMouseEvent *>( event ) ); -#ifndef QT_NO_WHEELEVENT +#ifndef TQT_NO_WHEELEVENT case TQEvent::Wheel: return eventFilter_wheel( object, static_cast<TQWheelEvent *>( event ) ); #endif @@ -542,7 +542,7 @@ bool KOAgenda::eventFilter_key( TQObject *, TQKeyEvent *ke ) void KOAgenda::emitNewEventForSelection() { - QPair<ResourceCalendar *, TQString>p = mCalendarView->viewSubResourceCalendar(); + TQPair<ResourceCalendar *, TQString>p = mCalendarView->viewSubResourceCalendar(); emit newEventSignal( p.first, p.second ); } @@ -559,7 +559,7 @@ void KOAgenda::finishTypeAhead() mTypeAheadEvents.clear(); mTypeAhead = false; } -#ifndef QT_NO_WHEELEVENT +#ifndef TQT_NO_WHEELEVENT bool KOAgenda::eventFilter_wheel ( TQObject *object, TQWheelEvent *e ) { TQPoint viewportPos; @@ -574,7 +574,7 @@ bool KOAgenda::eventFilter_wheel ( TQObject *object, TQWheelEvent *e ) // e->type()<<" delta: "<< e->delta()<< endl; emit zoomView( -e->delta() , contentsToGrid( viewportToContents( viewportPos ) ), - Qt::Horizontal ); + TQt::Horizontal ); accepted=true; } @@ -586,7 +586,7 @@ bool KOAgenda::eventFilter_wheel ( TQObject *object, TQWheelEvent *e ) } emit zoomView( -e->delta() , contentsToGrid( viewportToContents( viewportPos ) ), - Qt::Vertical ); + TQt::Vertical ); emit mousePosSignal(gridToContents(contentsToGrid(viewportToContents( viewportPos )))); accepted=true; } @@ -724,7 +724,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me) case TQEvent::MouseButtonDblClick: if (object == viewport()) { selectItem(0); - QPair<ResourceCalendar *, TQString>p = mCalendarView->viewSubResourceCalendar(); + TQPair<ResourceCalendar *, TQString>p = mCalendarView->viewSubResourceCalendar(); emit newEventSignal( p.first, p.second ); } else { KOAgendaItem *doubleClickedItem = dynamic_cast<KOAgendaItem *>( object ); @@ -1002,7 +1002,7 @@ void KOAgenda::performItemAction(const TQPoint& viewportPos) // erase current item (i.e. remove it from the multiItem list) firstItem = moveItem->nextMultiItem(); moveItem->hide(); - mItems.take( mItems.find( moveItem ) ); + mItems.take( mItems.tqfind( moveItem ) ); removeChild( moveItem ); mActionItem->removeMoveItem(moveItem); moveItem=firstItem; @@ -1019,7 +1019,7 @@ void KOAgenda::performItemAction(const TQPoint& viewportPos) // erase current item lastItem = moveItem->prevMultiItem(); moveItem->hide(); - mItems.take( mItems.find(moveItem) ); + mItems.take( mItems.tqfind(moveItem) ); removeChild( moveItem ); moveItem->removeMoveItem( moveItem ); moveItem = lastItem; @@ -1769,7 +1769,7 @@ void KOAgenda::showAgendaItem( KOAgendaItem *agendaItem ) agendaItem->hide(); addChild( agendaItem ); - if ( !mItems.tqcontainsRef( agendaItem ) ) { + if ( !mItems.containsRef( agendaItem ) ) { mItems.append( agendaItem ); } placeSubCells( agendaItem ); @@ -1785,7 +1785,7 @@ bool KOAgenda::removeAgendaItem( KOAgendaItem *item ) TQPtrList<KOAgendaItem> conflictItems = thisItem->conflictItems(); removeChild( thisItem ); - int pos = mItems.find( thisItem ); + int pos = mItems.tqfind( thisItem ); if ( pos >= 0 ) { mItems.take( pos ); taken = true; @@ -1811,7 +1811,7 @@ void KOAgenda::deleteItemsToDelete() /*TQSizePolicy KOAgenda::sizePolicy() const { // Thought this would make the all-day event agenda minimum size and the - // normal agenda take the remaining space. But it doesnt work. The QSplitter + // normal agenda take the remaining space. But it doesnt work. The TQSplitter // dont seem to think that an Expanding widget needs more space than a // Preferred one. // But it doesnt hurt, so it stays. |