diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 14:11:34 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 14:11:34 +0300 |
commit | d991b7f387775dc1071fb0c0af78de1c613ca991 (patch) | |
tree | eb7c978130acb1b2c93eeea98be2f647372c6fac /src/komposewidget.cpp | |
parent | 1bd3c5b42f1570b2100a4986f638f2723ee37ec4 (diff) | |
download | kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.tar.gz kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.zip |
Qt3->TQt conversion.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposewidget.cpp')
-rw-r--r-- | src/komposewidget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/komposewidget.cpp b/src/komposewidget.cpp index 80d9ef4..be516cc 100644 --- a/src/komposewidget.cpp +++ b/src/komposewidget.cpp @@ -20,14 +20,14 @@ #include "komposewidget.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 */ -KomposeWidget::KomposeWidget(QWidget *parent, KomposeLayout *l, const char *name) - : QWidget(parent, name) +KomposeWidget::KomposeWidget(TQWidget *parent, KomposeLayout *l, const char *name) + : TQWidget(parent, name) { if (!l) layout = new KomposeLayout( this ); @@ -45,10 +45,10 @@ KomposeWidget::~KomposeWidget() /* * Whenever a child is added to the widget it's also added to the layout */ -void KomposeWidget::childEvent ( QChildEvent * ce) +void KomposeWidget::childEvent ( TQChildEvent * ce) { KomposeWidget* kwChild = 0; - kwChild = ::qt_cast<KomposeWidget*>(ce->child()); + kwChild = ::tqt_cast<KomposeWidget*>(ce->child()); if ( !kwChild ) return; @@ -68,7 +68,7 @@ void KomposeWidget::childEvent ( QChildEvent * ce) /* * Whenever a resize occurs rearrange the layout */ -void KomposeWidget::resizeEvent ( QResizeEvent * e ) +void KomposeWidget::resizeEvent ( TQResizeEvent * e ) { kdDebug() << "KomposeWidget(" << className() << ")::resizeEvent - Size:" << e->size().width() << "x"<< e->size().height() << endl; layout->arrangeLayout(); @@ -77,11 +77,11 @@ void KomposeWidget::resizeEvent ( QResizeEvent * e ) KomposeWidget* KomposeWidget::getParentWidget() const { - if ( QWidget::parent()->inherits("KomposeWidget") ) - return (KomposeWidget*)QWidget::parent(); + if ( TQWidget::parent()->inherits("KomposeWidget") ) + return (KomposeWidget*)TQWidget::parent(); else { - kdDebug() << "KomposeWidget::getParentWidget() - QWidget::parent() does not inherit (KomposeWidget)" << endl; + kdDebug() << "KomposeWidget::getParentWidget() - TQWidget::parent() does not inherit (KomposeWidget)" << endl; return NULL; } } |