summaryrefslogtreecommitdiffstats
path: root/kaddressbook/phoneeditwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /kaddressbook/phoneeditwidget.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/phoneeditwidget.cpp')
-rw-r--r--kaddressbook/phoneeditwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp
index 2587ad3e..fc05df18 100644
--- a/kaddressbook/phoneeditwidget.cpp
+++ b/kaddressbook/phoneeditwidget.cpp
@@ -97,7 +97,7 @@ void PhoneTypeCombo::update()
}
}
- setCurrentItem( mLastSelected = mTypeList.findIndex( mType ) );
+ setCurrentItem( mLastSelected = mTypeList.tqfindIndex( mType ) );
blockSignals( blocked );
}
@@ -183,7 +183,7 @@ PhoneEditWidget::PhoneEditWidget( TQWidget *tqparent, const char *name )
mRemoveButton->setMaximumSize( mRemoveButton->tqsizeHint() );
tqlayout->addWidget( mRemoveButton, 1, 1 );
- mMapper = new TQSignalMapper( this );
+ mMapper = new TQSignalMapper( TQT_TQOBJECT(this) );
connect( mMapper, TQT_SIGNAL( mapped( int ) ), TQT_SLOT( changed( int ) ) );
connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( add() ) );
@@ -271,7 +271,7 @@ void PhoneEditWidget::recreateNumberWidgets()
PhoneNumberWidget *wdg = new PhoneNumberWidget( this );
wdg->setNumber( *it );
- mMapper->setMapping( wdg, counter );
+ mMapper->setMapping( TQT_TQOBJECT(wdg), counter );
connect( wdg, TQT_SIGNAL( modified() ), mMapper, TQT_SLOT( map() ) );
mWidgetLayout->addWidget( wdg );
@@ -303,7 +303,7 @@ PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *tqparent )
mPreferredBox = new TQCheckBox( i18n( "This is the preferred phone number" ), page );
tqlayout->addWidget( mPreferredBox );
- mGroup = new TQButtonGroup( 2, Horizontal, i18n( "Types" ), page );
+ mGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n( "Types" ), page );
tqlayout->addWidget( mGroup );
// fill widgets