From 1c93fca14d9ce37499bcfdf994c660186a0b6f17 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 14 Apr 2011 20:16:30 +0000 Subject: 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 --- kaddressbook/phoneeditwidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kaddressbook/phoneeditwidget.cpp') diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index 2587ad3e6..fc05df184 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 -- cgit v1.2.1