summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/phoneeditwidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp
index a435959..2bce39a 100644
--- a/kaddressbook/phoneeditwidget.cpp
+++ b/kaddressbook/phoneeditwidget.cpp
@@ -387,25 +387,28 @@ PhoneEditDialog::PhoneEditDialog( const KABC::PhoneNumber::List &list, QWidget *
387 mRemoveButton->setEnabled( false ); 387 mRemoveButton->setEnabled( false );
388 buttonBox->layout(); 388 buttonBox->layout();
389 389
390 layout->addWidget( mListView, 0, 0 ); 390 layout->addWidget( mListView, 0, 0 );
391 layout->addWidget( buttonBox, 0, 1 ); 391 layout->addWidget( buttonBox, 0, 1 );
392 392
393 connect( mListView, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()) ); 393 connect( mListView, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()) );
394 connect( mListView, SIGNAL(doubleClicked( QListViewItem *, const QPoint &, int )), this, SLOT( slotEditPhoneNumber())); 394 connect( mListView, SIGNAL(doubleClicked( QListViewItem *, const QPoint &, int )), this, SLOT( slotEditPhoneNumber()));
395 395
396 KABC::PhoneNumber::List::Iterator it; 396 KABC::PhoneNumber::List::Iterator it;
397 for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it ) 397 for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it )
398 new PhoneViewItem( mListView, *it ); 398 new PhoneViewItem( mListView, *it );
399 399 if (QApplication::desktop()->width() < 480 )
400 showMaximized();
401 else
402 resize( 400, 400 );
400 mChanged = false; 403 mChanged = false;
401} 404}
402 405
403PhoneEditDialog::~PhoneEditDialog() 406PhoneEditDialog::~PhoneEditDialog()
404{ 407{
405} 408}
406 409
407void PhoneEditDialog::slotAddPhoneNumber() 410void PhoneEditDialog::slotAddPhoneNumber()
408{ 411{
409 KABC::PhoneNumber tmp( "", 0 ); 412 KABC::PhoneNumber tmp( "", 0 );
410 PhoneTypeDialog dlg( tmp, this ); 413 PhoneTypeDialog dlg( tmp, this );
411 414