From 383adc283801b6238d8acfc750890613a63f8060 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 20:48:23 +0000 Subject: TQt4 port kima This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kima@1239290 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/prefs.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/prefs.cpp') diff --git a/src/prefs.cpp b/src/prefs.cpp index ed1ec2b..cf17d22 100644 --- a/src/prefs.cpp +++ b/src/prefs.cpp @@ -11,28 +11,28 @@ #include "prefs.h" -#include -#include -#include +#include +#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include /* - * Constructs a Prefs as a child of 'parent', with the + * Constructs a Prefs as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -Prefs::Prefs( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +Prefs::Prefs( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "Prefs" ); - PrefsLayout = new QVBoxLayout( this, 0, 6, "PrefsLayout"); + PrefsLayout = new TQVBoxLayout( this, 0, 6, "PrefsLayout"); - splitter3 = new QSplitter( this, "splitter3" ); - splitter3->setOrientation( QSplitter::Horizontal ); + splitter3 = new TQSplitter( this, "splitter3" ); + splitter3->setOrientation( TQSplitter::Horizontal ); sourceListView = new KListView( splitter3, "sourceListView" ); sourceListView->addColumn( tr2i18n( "Source" ) ); @@ -40,13 +40,13 @@ Prefs::Prefs( QWidget* parent, const char* name, WFlags fl ) sourceListView->header()->setResizeEnabled( FALSE, sourceListView->header()->count() - 1 ); sourceListView->setResizeMode( KListView::AllColumns ); - widgetStack = new QWidgetStack( splitter3, "widgetStack" ); + widgetStack = new TQWidgetStack( splitter3, "widgetStack" ); - WStackPage = new QWidget( widgetStack, "WStackPage" ); + WStackPage = new TQWidget( widgetStack, "WStackPage" ); widgetStack->addWidget( WStackPage, 0 ); PrefsLayout->addWidget( splitter3 ); languageChange(); - resize( QSize(340, 73).expandedTo(minimumSizeHint()) ); + resize( TQSize(340, 73).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); } @@ -55,7 +55,7 @@ Prefs::Prefs( QWidget* parent, const char* name, WFlags fl ) */ Prefs::~Prefs() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* -- cgit v1.2.1