summaryrefslogtreecommitdiffstats
path: root/kode
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:23:13 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 04:25:13 +0200
commitc4b3c076ff7d33a8205c616611477ae3c7532de7 (patch)
tree951a8f07f1a0dafc04cb0ca4b2af034809da9883 /kode
parent04b89c2dbd5fb1b865453f3977261a60a70f6bc2 (diff)
downloadtdepim-c4b3c076ff7d33a8205c616611477ae3c7532de7.tar.gz
tdepim-c4b3c076ff7d33a8205c616611477ae3c7532de7.zip
Rename obsolete tq methods to standard names
(cherry picked from commit ba2a3ce341c0c71bbbcf350fcbcd60c552220b31)
Diffstat (limited to 'kode')
-rw-r--r--kode/kwsdl/kung/complexbaseinputfield.cpp6
-rw-r--r--kode/kwsdl/kung/listinputfield.cpp10
-rw-r--r--kode/kwsdl/kung/pageinputfield.cpp8
3 files changed, 12 insertions, 12 deletions
diff --git a/kode/kwsdl/kung/complexbaseinputfield.cpp b/kode/kwsdl/kung/complexbaseinputfield.cpp
index bfcd375e2..7466029c7 100644
--- a/kode/kwsdl/kung/complexbaseinputfield.cpp
+++ b/kode/kwsdl/kung/complexbaseinputfield.cpp
@@ -141,14 +141,14 @@ TQWidget *ComplexBaseInputField::createWidget( TQWidget *parent )
{
TQGroupBox *inputWidget = new TQGroupBox( mName, parent );
inputWidget->setColumnLayout( 0, TQt::Horizontal );
- TQGridLayout *tqlayout = new TQGridLayout( inputWidget->tqlayout(), 2, 2, 6 );
+ TQGridLayout *layout = new TQGridLayout( inputWidget->layout(), 2, 2, 6 );
InputField::List::Iterator it;
int row = 0;
for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) {
TQLabel *label = new TQLabel( (*it)->name(), inputWidget );
- tqlayout->addWidget( label, row, 0 );
- tqlayout->addWidget( (*it)->createWidget( inputWidget ), row, 1 );
+ layout->addWidget( label, row, 0 );
+ layout->addWidget( (*it)->createWidget( inputWidget ), row, 1 );
}
return inputWidget;
diff --git a/kode/kwsdl/kung/listinputfield.cpp b/kode/kwsdl/kung/listinputfield.cpp
index 7a5eeb713..6bc1d8240 100644
--- a/kode/kwsdl/kung/listinputfield.cpp
+++ b/kode/kwsdl/kung/listinputfield.cpp
@@ -91,19 +91,19 @@ ListWidget::ListWidget( InputField *parentField, const TQString &name, const TQS
: TQWidget( parent ),
mParentField( parentField ), mName( name ), mType( type )
{
- TQGridLayout *tqlayout = new TQGridLayout( this, 4, 2, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 );
mView = new TQListBox( this );
- tqlayout->addMultiCellWidget( mView, 0, 3, 0, 0 );
+ layout->addMultiCellWidget( mView, 0, 3, 0, 0 );
mAddButton = new TQPushButton( i18n( "Add" ), this );
- tqlayout->addWidget( mAddButton, 0, 1 );
+ layout->addWidget( mAddButton, 0, 1 );
mEditButton = new TQPushButton( i18n( "Edit..." ), this );
- tqlayout->addWidget( mEditButton, 1, 1 );
+ layout->addWidget( mEditButton, 1, 1 );
mRemoveButton = new TQPushButton( i18n( "Remove" ), this );
- tqlayout->addWidget( mRemoveButton, 2, 1 );
+ layout->addWidget( mRemoveButton, 2, 1 );
connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( add() ) );
connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( edit() ) );
diff --git a/kode/kwsdl/kung/pageinputfield.cpp b/kode/kwsdl/kung/pageinputfield.cpp
index c5ea0016e..96a758c39 100644
--- a/kode/kwsdl/kung/pageinputfield.cpp
+++ b/kode/kwsdl/kung/pageinputfield.cpp
@@ -88,18 +88,18 @@ TQString PageInputField::data() const
TQWidget *PageInputField::createWidget( TQWidget *parent )
{
TQWidget *mInputWidget = new TQWidget( parent, "PageInputWidget" );
- TQGridLayout *tqlayout = new TQGridLayout( mInputWidget, 2, 2, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( mInputWidget, 2, 2, 11, 6 );
InputField::List::Iterator it;
int row = 0;
for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) {
TQLabel *label = new TQLabel( (*it)->name(), mInputWidget );
label->setAlignment( TQt::AlignTop );
- tqlayout->addWidget( label, row, 0 );
- tqlayout->addWidget( (*it)->createWidget( mInputWidget ), row, 1 );
+ layout->addWidget( label, row, 0 );
+ layout->addWidget( (*it)->createWidget( mInputWidget ), row, 1 );
}
- tqlayout->setRowStretch( ++row, 1 );
+ layout->setRowStretch( ++row, 1 );
return mInputWidget;
}