summaryrefslogtreecommitdiffstats
path: root/kompare/libdialogpages/pagebase.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kompare/libdialogpages/pagebase.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kompare/libdialogpages/pagebase.cpp')
-rw-r--r--kompare/libdialogpages/pagebase.cpp24
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 );