diff options
Diffstat (limited to 'src/komposeglwidget.cpp')
-rw-r--r-- | src/komposeglwidget.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/komposeglwidget.cpp b/src/komposeglwidget.cpp index 5ce4cff..14c6d5d 100644 --- a/src/komposeglwidget.cpp +++ b/src/komposeglwidget.cpp @@ -20,17 +20,17 @@ #include "komposeglwidget.h" #include "komposelayout.h" -#include <qtimer.h> +#include <tqtimer.h> #include <kdebug.h> /* * The constructor accepts a custom layout, if none is specified a defaultlayout is used */ -KomposeGLWidget::KomposeGLWidget(QObject *parent, KomposeLayout *l, const char *name) - : QObject(parent) +KomposeGLWidget::KomposeGLWidget(TQObject *parent, KomposeLayout *l, const char *name) + : TQObject(parent) { - geometry = QRect(0,0,1,1); + geometry = TQRect(0,0,1,1); if (!l) layout = new KomposeLayout( this ); else @@ -45,27 +45,27 @@ KomposeGLWidget::~KomposeGLWidget() /* * Whenever a child is added to the widget it's also added to the layout */ -void KomposeGLWidget::childEvent ( QChildEvent * ce ) +void KomposeGLWidget::childEvent ( TQChildEvent * ce ) { if ( !ce->child()->inherits("KomposeGLWidget") ) return; if ( ce->inserted() ) { - qDebug("KomposeGLWidget::childEvent : Added widget " << ce->child()->className() << " to " << className() << endl; + tqDebug("KomposeGLWidget::childEvent : Added widget " << ce->child()->className() << " to " << className() << endl; list.append( dynamic_cast<KomposeGLWidget*>(ce->child()) ); layout->add( dynamic_cast<KomposeWidgetInterface*>(ce->child()) ); } else if ( ce->removed() ) { - qDebug("KomposeGLWidget::childEvent : Removed widget %s from %s", ce->child()->className(), className() ); + tqDebug("KomposeGLWidget::childEvent : Removed widget %s from %s", ce->child()->className(), className() ); list.remove( dynamic_cast<KomposeGLWidget*>(ce->child()) ); layout->remove( dynamic_cast<KomposeWidgetInterface*>(ce->child()) ); } // Whenever a child is added/removed: rearrange layout // FIXME: sometimes widget's aren't added in time, so we have to add a short delay: - QTimer::singleShot( 200, layout, SLOT( arrangeLayout() ) ); + TQTimer::singleShot( 200, layout, SLOT( arrangeLayout() ) ); } /* @@ -73,47 +73,47 @@ void KomposeGLWidget::childEvent ( QChildEvent * ce ) */ void KomposeGLWidget::draw() { - qDebug("KomposeGLWidget::draw - Arranging layout"); + tqDebug("KomposeGLWidget::draw - Arranging layout"); layout->arrangeLayout(); } -// Redirect these functions to QWidget +// Redirect these functions to TQWidget -void KomposeGLWidget::setGeom ( const QRect &rect ) +void KomposeGLWidget::setGeom ( const TQRect &rect ) { geometry = rect; } -void KomposeGLWidget::setGeom ( const QSize &size ) +void KomposeGLWidget::setGeom ( const TQSize &size ) { geometry.setSize( size ); } -QSize KomposeGLWidget::getSize() const +TQSize KomposeGLWidget::getSize() const { return geometry.size(); } -QRect KomposeGLWidget::getRect() const +TQRect KomposeGLWidget::getRect() const { return geometry; } KomposeWidgetInterface* KomposeGLWidget::getParentWidget() const { - if ( QObject::parent()->inherits("KomposeWidgetInterface") ) - return (KomposeWidgetInterface*)QObject::parent(); + if ( TQObject::parent()->inherits("KomposeWidgetInterface") ) + return (KomposeWidgetInterface*)TQObject::parent(); else { - qDebug("KomposeGLWidget::getParentWidget() - QWidget::parent() does not inherit (KomposeWidgetInterface)"); + tqDebug("KomposeGLWidget::getParentWidget() - TQWidget::parent() does not inherit (KomposeWidgetInterface)"); return NULL; } } void KomposeGLWidget::removeChildWidget( KomposeWidgetInterface* obj ) { - QObject::removeChild((QObject *) obj); + TQObject::removeChild((TQObject *) obj); } #include "komposeglwidget.moc" |