summaryrefslogtreecommitdiffstats
path: root/kaddressbook/phoneeditwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /kaddressbook/phoneeditwidget.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'kaddressbook/phoneeditwidget.cpp')
-rw-r--r--kaddressbook/phoneeditwidget.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp
index 16853ea2b..5c5733142 100644
--- a/kaddressbook/phoneeditwidget.cpp
+++ b/kaddressbook/phoneeditwidget.cpp
@@ -24,7 +24,7 @@
#include <tqbuttongroup.h>
#include <tqcheckbox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlistbox.h>
#include <tqlistview.h>
#include <tqpushbutton.h>
@@ -129,13 +129,13 @@ void PhoneTypeCombo::otherSelected()
PhoneNumberWidget::PhoneNumberWidget( TQWidget *parent )
: TQWidget( parent )
{
- TQHBoxLayout *layout = new TQHBoxLayout( this, 6, 11 );
+ TQHBoxLayout *tqlayout = new TQHBoxLayout( this, 6, 11 );
mTypeCombo = new PhoneTypeCombo( this );
mNumberEdit = new KLineEdit( this );
- layout->addWidget( mTypeCombo );
- layout->addWidget( mNumberEdit );
+ tqlayout->addWidget( mTypeCombo );
+ tqlayout->addWidget( mNumberEdit );
connect( mTypeCombo, TQT_SIGNAL( modified() ), TQT_SIGNAL( modified() ) );
connect( mNumberEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SIGNAL( modified() ) );
@@ -169,19 +169,19 @@ void PhoneNumberWidget::setReadOnly( bool readOnly )
PhoneEditWidget::PhoneEditWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name ), mReadOnly( false )
{
- TQGridLayout *layout = new TQGridLayout( this, 2, 2 );
- layout->setSpacing( KDialog::spacingHint() );
+ TQGridLayout *tqlayout = new TQGridLayout( this, 2, 2 );
+ tqlayout->setSpacing( KDialog::spacingHint() );
- mWidgetLayout = new TQVBoxLayout( layout );
- layout->addMultiCellLayout( mWidgetLayout, 0, 0, 0, 1 );
+ mWidgetLayout = new TQVBoxLayout( tqlayout );
+ tqlayout->addMultiCellLayout( mWidgetLayout, 0, 0, 0, 1 );
mAddButton = new TQPushButton( i18n( "Add" ), this );
- mAddButton->setMaximumSize( mAddButton->sizeHint() );
- layout->addWidget( mAddButton, 1, 0, TQt::AlignRight );
+ mAddButton->setMaximumSize( mAddButton->tqsizeHint() );
+ tqlayout->addWidget( mAddButton, 1, 0, TQt::AlignRight );
mRemoveButton = new TQPushButton( i18n( "Remove" ), this );
- mRemoveButton->setMaximumSize( mRemoveButton->sizeHint() );
- layout->addWidget( mRemoveButton, 1, 1 );
+ mRemoveButton->setMaximumSize( mRemoveButton->tqsizeHint() );
+ tqlayout->addWidget( mRemoveButton, 1, 1 );
mMapper = new TQSignalMapper( TQT_TQOBJECT(this) );
connect( mMapper, TQT_SIGNAL( mapped( int ) ), TQT_SLOT( changed( int ) ) );
@@ -298,13 +298,13 @@ PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *parent )
{
TQWidget *page = plainPage();
- TQVBoxLayout *layout = new TQVBoxLayout( page, spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( page, spacingHint() );
mPreferredBox = new TQCheckBox( i18n( "This is the preferred phone number" ), page );
- layout->addWidget( mPreferredBox );
+ tqlayout->addWidget( mPreferredBox );
mGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n( "Types" ), page );
- layout->addWidget( mGroup );
+ tqlayout->addWidget( mGroup );
// fill widgets
mTypeList = KABC::PhoneNumber::typeList();