diff options
Diffstat (limited to 'src/komposetaskcontainerwidget.cpp')
-rw-r--r-- | src/komposetaskcontainerwidget.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/komposetaskcontainerwidget.cpp b/src/komposetaskcontainerwidget.cpp index 2899b5b..d814ccc 100644 --- a/src/komposetaskcontainerwidget.cpp +++ b/src/komposetaskcontainerwidget.cpp @@ -16,14 +16,14 @@ #include "komposesettings.h" #include "komposetaskwidget.h" -#include <qobjectlist.h> -#include <qwidget.h> -#include <qtimer.h> +#include <tqobjectlist.h> +#include <tqwidget.h> +#include <tqtimer.h> #include <kdebug.h> static bool controlHold = false; // is the control key pressed -KomposeTaskContainerWidget::KomposeTaskContainerWidget( int desk, QWidget *parent, KomposeLayout *l, const char *name) +KomposeTaskContainerWidget::KomposeTaskContainerWidget( int desk, TQWidget *parent, KomposeLayout *l, const char *name) : KomposeWidget(parent, l, name), desktop( desk ) { @@ -47,7 +47,7 @@ void KomposeTaskContainerWidget::reparentTaskWidget( KomposeTask* task, int from if ( (toDesktop!= -1) && (desktop == fromDesktop-1 || fromDesktop==-1) ) { KomposeTaskWidget *child; - QPtrListIterator<KomposeWidget> it( *(layout->getManagedWidgets())); + TQPtrListIterator<KomposeWidget> it( *(layout->getManagedWidgets())); while ( (child = dynamic_cast<KomposeTaskWidget*>(it.current()) ) != 0 ) { ++it; @@ -66,33 +66,33 @@ void KomposeTaskContainerWidget::reparentTaskWidget( KomposeTask* task, int from if ( desktop == toDesktop -1 || (toDesktop == -1 && fromDesktop-1!=desktop) ) { createTaskWidget( task, true ); - //QTimer::singleShot( 200, layout, SLOT( arrangeLayout() ) ); + //TQTimer::singleShot( 200, layout, SLOT( arrangeLayout() ) ); // layout->arrangeLayout(); } } -void KomposeTaskContainerWidget::keyPressEvent ( QKeyEvent * e ) +void KomposeTaskContainerWidget::keyPressEvent ( TQKeyEvent * e ) { - if ( e->key() == Qt::Key_Control ) + if ( e->key() == TQt::Key_Control ) { controlHold = true; e->accept(); } } -void KomposeTaskContainerWidget::keyReleaseEvent ( QKeyEvent * e ) +void KomposeTaskContainerWidget::keyReleaseEvent ( TQKeyEvent * e ) { - if ( e->key() == Qt::Key_Control ) + if ( e->key() == TQt::Key_Control ) { controlHold = false; e->accept(); return; } - if ( e->key() == Qt::Key_Right || e->key() == Qt::Key_D || e->key() == Qt::Key_H || - e->key() == Qt::Key_Left || e->key() == Qt::Key_A || e->key() == Qt::Key_J || - e->key() == Qt::Key_Up || e->key() == Qt::Key_W || e->key() == Qt::Key_K || - e->key() == Qt::Key_Down || e->key() == Qt::Key_S || e->key() == Qt::Key_L ) + if ( e->key() == TQt::Key_Right || e->key() == TQt::Key_D || e->key() == TQt::Key_H || + e->key() == TQt::Key_Left || e->key() == TQt::Key_A || e->key() == TQt::Key_J || + e->key() == TQt::Key_Up || e->key() == TQt::Key_W || e->key() == TQt::Key_K || + e->key() == TQt::Key_Down || e->key() == TQt::Key_S || e->key() == TQt::Key_L ) { if ( controlHold && desktop != -1 ) { @@ -105,40 +105,40 @@ void KomposeTaskContainerWidget::keyReleaseEvent ( QKeyEvent * e ) int direction = DLAYOUT_RIGHT; switch( e->key() ) { - case Qt::Key_Right: + case TQt::Key_Right: direction = DLAYOUT_RIGHT; break; - case Qt::Key_D: + case TQt::Key_D: direction = DLAYOUT_RIGHT; break; - case Qt::Key_L: + case TQt::Key_L: direction = DLAYOUT_RIGHT; break; - case Qt::Key_Left: + case TQt::Key_Left: direction = DLAYOUT_LEFT; break; - case Qt::Key_A: + case TQt::Key_A: direction = DLAYOUT_LEFT; break; - case Qt::Key_H: + case TQt::Key_H: direction = DLAYOUT_LEFT; break; - case Qt::Key_Up: + case TQt::Key_Up: direction = DLAYOUT_TOP; break; - case Qt::Key_W: + case TQt::Key_W: direction = DLAYOUT_TOP; break; - case Qt::Key_K: + case TQt::Key_K: direction = DLAYOUT_TOP; break; - case Qt::Key_Down: + case TQt::Key_Down: direction = DLAYOUT_BOTTOM; break; - case Qt::Key_S: + case TQt::Key_S: direction = DLAYOUT_BOTTOM; break; - case Qt::Key_J: + case TQt::Key_J: direction = DLAYOUT_BOTTOM; break; } @@ -159,13 +159,13 @@ bool KomposeTaskContainerWidget::focusNeighbourChild( int direction ) if ( !children()->containsRef(focusWidget()) ) { kdDebug() << "KomposeTaskContainerWidget::keyReleaseEvent - No widget focussed. Focussing first" << endl; - const QObjectList *lst = children(); + const TQObjectList *lst = children(); if ( lst ) { - QObjectListIterator it( *lst ); - QWidget *widget; - while ( (widget = (QWidget*)it.current() ) ) + TQObjectListIterator it( *lst ); + TQWidget *widget; + while ( (widget = (TQWidget*)it.current() ) ) { if (widget->inherits("KomposeTaskWidget") || widget->inherits("KomposeDesktopWidget")) { @@ -196,12 +196,12 @@ bool KomposeTaskContainerWidget::focusNeighbourChild( int direction ) void KomposeTaskContainerWidget::createTaskWidgets() { TaskList tl = KomposeTaskManager::instance()->getTasks(); - QPtrListIterator<KomposeTask> it( tl ); + TQPtrListIterator<KomposeTask> it( tl ); KomposeTask *task; while ( (task = it.current()) != 0 ) { ++it; - Q_CHECK_PTR(task); + TQ_CHECK_PTR(task); createTaskWidget( task); } } @@ -243,7 +243,7 @@ void KomposeTaskContainerWidget::requestRemoval( KomposeWidget *obj ) layout->arrangeLayout(); } -void KomposeTaskContainerWidget::childEvent( QChildEvent * ce) +void KomposeTaskContainerWidget::childEvent( TQChildEvent * ce) { KomposeWidget::childEvent(ce); // ReLayout when we are in a active view and a new window appeared somewhere |