summaryrefslogtreecommitdiffstats
path: root/kaddressbook/phoneeditwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/phoneeditwidget.cpp')
-rw-r--r--kaddressbook/phoneeditwidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp
index 71a9f504f..46efcba98 100644
--- a/kaddressbook/phoneeditwidget.cpp
+++ b/kaddressbook/phoneeditwidget.cpp
@@ -68,7 +68,7 @@ PhoneTypeCombo::~PhoneTypeCombo()
void PhoneTypeCombo::setType( int type )
{
- if ( !mTypeList.contains( type ) )
+ if ( !mTypeList.tqcontains( type ) )
mTypeList.insert( mTypeList.at( mTypeList.count() - 1 ), type );
mType = type;
@@ -117,7 +117,7 @@ void PhoneTypeCombo::otherSelected()
PhoneTypeDialog dlg( mType, this );
if ( dlg.exec() ) {
mType = dlg.type();
- if ( !mTypeList.contains( mType ) )
+ if ( !mTypeList.tqcontains( mType ) )
mTypeList.insert( mTypeList.at( mTypeList.count() - 1 ), mType );
} else {
setType( mTypeList[ mLastSelected ] );
@@ -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, Qt::AlignRight );
+ mAddButton->setMaximumSize( mAddButton->tqsizeHint() );
+ tqlayout->addWidget( mAddButton, 1, 0, Qt::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( 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, Horizontal, i18n( "Types" ), page );
- layout->addWidget( mGroup );
+ tqlayout->addWidget( mGroup );
// fill widgets
mTypeList = KABC::PhoneNumber::typeList();