diff options
Diffstat (limited to 'kompare/libdialogpages/pagebase.cpp')
-rw-r--r-- | kompare/libdialogpages/pagebase.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kompare/libdialogpages/pagebase.cpp b/kompare/libdialogpages/pagebase.cpp index de062634..ef9aa1ea 100644 --- a/kompare/libdialogpages/pagebase.cpp +++ b/kompare/libdialogpages/pagebase.cpp @@ -17,12 +17,12 @@ ** ***************************************************************************/ -#include <qlayout.h> -#include <qobjectlist.h> +#include <tqlayout.h> +#include <tqobjectlist.h> #include "pagebase.h" -PageBase::PageBase( QWidget* parent ) : KTabCtl( parent ) +PageBase::PageBase( TQWidget* parent ) : KTabCtl( parent ) { } @@ -33,7 +33,7 @@ PageBase::~PageBase() } /** No descriptions */ -QSize PageBase::sizeHintForWidget( QWidget* widget ) +TQSize PageBase::sizeHintForWidget( TQWidget* widget ) { // // The size is computed by adding the sizeHint().height() of all @@ -44,23 +44,23 @@ QSize PageBase::sizeHintForWidget( QWidget* widget ) // this code in this method has been ripped out of a file in kbabel // so copyright goes to the kbabel authors. - QSize size; + TQSize size; int numChild = 0; - QObjectList *l = (QObjectList*)(widget->children()); + TQObjectList *l = (TQObjectList*)(widget->children()); for( uint i=0; i < l->count(); i++ ) { - QObject *o = l->at(i); + TQObject *o = l->at(i); if( o->isWidgetType() ) { numChild += 1; - QWidget *w=((QWidget*)o); + TQWidget *w=((TQWidget*)o); - QSize s = w->sizeHint(); + TQSize s = w->sizeHint(); if( s.isEmpty() == true ) { - s = QSize( 50, 100 ); // Default size + s = TQSize( 50, 100 ); // Default size } size.setHeight( size.height() + s.height() ); if( s.width() > size.width() ) @@ -73,11 +73,11 @@ QSize PageBase::sizeHintForWidget( QWidget* widget ) if( numChild > 0 ) { size.setHeight( size.height() + widget->layout()->spacing()*(numChild-1) ); - size += QSize( widget->layout()->margin()*2, widget->layout()->margin()*2 + 1 ); + size += TQSize( widget->layout()->margin()*2, widget->layout()->margin()*2 + 1 ); } else { - size = QSize( 1, 1 ); + size = TQSize( 1, 1 ); } return( size ); |