diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /src/configDlg.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/configDlg.cpp')
-rw-r--r-- | src/configDlg.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/configDlg.cpp b/src/configDlg.cpp index b4a6fb7..0df4a87 100644 --- a/src/configDlg.cpp +++ b/src/configDlg.cpp @@ -9,33 +9,33 @@ #include "configDlg.h" -#include <qvariant.h> -#include <qtable.h> +#include <tqvariant.h> +#include <tqtable.h> #include <kpushbutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include "kpushbutton.h" /* - * Constructs a configDlg as a child of 'parent', with the + * Constructs a configDlg as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +configDlg::configDlg( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "configDlg" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - configDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "configDlgLayout"); + tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); + configDlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "configDlgLayout"); - Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); + Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); configDlgLayout->addMultiCellLayout( Layout1, 3, 3, 0, 1 ); - spacer4 = new QSpacerItem( 20, 190, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer4 = new TQSpacerItem( 20, 190, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); configDlgLayout->addItem( spacer4, 2, 1 ); - tblDevices = new QTable( this, "tblDevices" ); + tblDevices = new TQTable( this, "tblDevices" ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "device" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); @@ -44,36 +44,36 @@ configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "Input" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "Output" ) ); - tblDevices->setResizePolicy( QTable::Default ); - tblDevices->setVScrollBarMode( QTable::Auto ); + tblDevices->setResizePolicy( TQTable::Default ); + tblDevices->setVScrollBarMode( TQTable::Auto ); tblDevices->setNumRows( 0 ); tblDevices->setNumCols( 4 ); tblDevices->setShowGrid( TRUE ); - tblDevices->setSelectionMode( QTable::Single ); - tblDevices->setFocusStyle( QTable::SpreadSheet ); + tblDevices->setSelectionMode( TQTable::Single ); + tblDevices->setFocusStyle( TQTable::SpreadSheet ); configDlgLayout->addMultiCellWidget( tblDevices, 1, 2, 0, 0 ); - layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); + tqlayout4 = new TQVBoxLayout( 0, 0, 6, "tqlayout4"); bAdd = new KPushButton( this, "bAdd" ); - bAdd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, bAdd->sizePolicy().hasHeightForWidth() ) ); + bAdd->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, bAdd->sizePolicy().hasHeightForWidth() ) ); bAdd->setProperty( "stdItem", 27 ); - layout4->addWidget( bAdd ); + tqlayout4->addWidget( bAdd ); bRemove = new KPushButton( this, "bRemove" ); - bRemove->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, bRemove->sizePolicy().hasHeightForWidth() ) ); + bRemove->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, bRemove->sizePolicy().hasHeightForWidth() ) ); bRemove->setProperty( "stdItem", 28 ); - layout4->addWidget( bRemove ); + tqlayout4->addWidget( bRemove ); - configDlgLayout->addLayout( layout4, 1, 1 ); + configDlgLayout->addLayout( tqlayout4, 1, 1 ); languageChange(); - resize( QSize(578, 342).expandedTo(minimumSizeHint()) ); + resize( TQSize(578, 342).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( bRemove, SIGNAL( clicked() ), this, SLOT( bRemoveClick() ) ); - connect( bAdd, SIGNAL( clicked() ), this, SLOT( bAddClick() ) ); + connect( bRemove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bRemoveClick() ) ); + connect( bAdd, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bAddClick() ) ); } /* @@ -81,7 +81,7 @@ configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) */ configDlg::~configDlg() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -96,9 +96,9 @@ void configDlg::languageChange() tblDevices->horizontalHeader()->setLabel( 2, tr2i18n( "Input" ) ); tblDevices->horizontalHeader()->setLabel( 3, tr2i18n( "Output" ) ); bAdd->setText( tr2i18n( "Add" ) ); - bAdd->setAccel( QKeySequence( QString::null ) ); + bAdd->setAccel( TQKeySequence( TQString() ) ); bRemove->setText( tr2i18n( "Remove" ) ); - bRemove->setAccel( QKeySequence( QString::null ) ); + bRemove->setAccel( TQKeySequence( TQString() ) ); } void configDlg::bRemoveClick() |