summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index a1ce5a0..5ce90a9 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -258,25 +258,25 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name,
258 258
259 259
260 isLoading = false; 260 isLoading = false;
261} 261}
262 262
263 263
264void AddressbookWindow::slotConfig() 264void AddressbookWindow::slotConfig()
265{ 265{
266 ConfigDlg* dlg = new ConfigDlg( this, "Config" ); 266 ConfigDlg* dlg = new ConfigDlg( this, "Config" );
267 dlg -> setConfig( m_config ); 267 dlg -> setConfig( m_config );
268 dlg -> showMaximized(); 268 dlg -> showMaximized();
269 if ( dlg -> exec() ) { 269 if ( dlg -> exec() ) {
270 qWarning ("Config Dialog accepted !"); 270 qWarning ("Config Dialog accepted!");
271 m_config = dlg -> getConfig(); 271 m_config = dlg -> getConfig();
272 if ( m_curFontSize != m_config.fontSize() ){ 272 if ( m_curFontSize != m_config.fontSize() ){
273 qWarning("Font was changed!"); 273 qWarning("Font was changed!");
274 m_curFontSize = m_config.fontSize(); 274 m_curFontSize = m_config.fontSize();
275 emit slotSetFont( m_curFontSize ); 275 emit slotSetFont( m_curFontSize );
276 } 276 }
277 m_abView -> setListOrder( m_config.orderList() ); 277 m_abView -> setListOrder( m_config.orderList() );
278 } 278 }
279 279
280 delete dlg; 280 delete dlg;
281} 281}
282 282
@@ -347,34 +347,34 @@ void AddressbookWindow::setDocument( const QString &filename )
347 } 347 }
348 } 348 }
349 349
350 OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, 350 OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null,
351 filename ); 351 filename );
352 OContactAccess* access = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); 352 OContactAccess* access = new OContactAccess ( "addressbook", QString::null , vcard_backend, true );
353 OContactAccess::List allList = access->allRecords(); 353 OContactAccess::List allList = access->allRecords();
354 qWarning( "Found number of contacts in File: %d", allList.count() ); 354 qWarning( "Found number of contacts in File: %d", allList.count() );
355 355
356 if ( !allList.count() ) { 356 if ( !allList.count() ) {
357 QMessageBox::information( this, "Import VCard", 357 QMessageBox::information( this, "Import VCard",
358 "It was impossible to import the VCard.\n" 358 "It was impossible to import the VCard.\n"
359 "The VCard may be corrupted !" ); 359 "The VCard may be corrupted!" );
360 } 360 }
361 361
362 bool doAsk = true; 362 bool doAsk = true;
363 OContactAccess::List::Iterator it; 363 OContactAccess::List::Iterator it;
364 for ( it = allList.begin(); it != allList.end(); ++it ){ 364 for ( it = allList.begin(); it != allList.end(); ++it ){
365 qWarning("Adding Contact from: %s", (*it).fullName().latin1() ); 365 qWarning("Adding Contact from: %s", (*it).fullName().latin1() );
366 if ( doAsk ){ 366 if ( doAsk ){
367 switch( QMessageBox::information( this, tr ( "Add Contact ?" ), 367 switch( QMessageBox::information( this, tr ( "Add Contact?" ),
368 tr( "Do you really want add contact for \n%1 ?" ) 368 tr( "Do you really want add contact for \n%1?" )
369 .arg( (*it).fullName().latin1() ), 369 .arg( (*it).fullName().latin1() ),
370 tr( "&Yes" ), tr( "&No" ), tr( "&AllYes"), 370 tr( "&Yes" ), tr( "&No" ), tr( "&AllYes"),
371 0, // Enter == button 0 371 0, // Enter == button 0
372 2 ) ) { // Escape == button 2 372 2 ) ) { // Escape == button 2
373 case 0: 373 case 0:
374 qWarning("YES clicked"); 374 qWarning("YES clicked");
375 m_abView->addEntry( *it ); 375 m_abView->addEntry( *it );
376 break; 376 break;
377 case 1: 377 case 1:
378 qWarning("NO clicked"); 378 qWarning("NO clicked");
379 break; 379 break;
380 case 2: 380 case 2:
@@ -821,33 +821,33 @@ bool AddressbookWindow::save()
821} 821}
822 822
823#ifdef __DEBUG_RELEASE 823#ifdef __DEBUG_RELEASE
824void AddressbookWindow::slotSave() 824void AddressbookWindow::slotSave()
825{ 825{
826 save(); 826 save();
827} 827}
828#endif 828#endif
829 829
830 830
831void AddressbookWindow::slotNotFound() 831void AddressbookWindow::slotNotFound()
832{ 832{
833 qWarning("Got notfound signal !"); 833 qWarning("Got notfound signal!");
834 QMessageBox::information( this, tr( "Not Found" ), 834 QMessageBox::information( this, tr( "Not Found" ),
835 tr( "Unable to find a contact for this \n search pattern!" ) ); 835 tr( "Unable to find a contact for this \n search pattern!" ) );
836 836
837 837
838} 838}
839void AddressbookWindow::slotWrapAround() 839void AddressbookWindow::slotWrapAround()
840{ 840{
841 qWarning("Got wrap signal !"); 841 qWarning("Got wrap signal!");
842 // if ( doNotifyWrapAround ) 842 // if ( doNotifyWrapAround )
843 // QMessageBox::information( this, tr( "End of list" ), 843 // QMessageBox::information( this, tr( "End of list" ),
844 // tr( "End of list. Wrap around now...!" ) + "\n" ); 844 // tr( "End of list. Wrap around now...!" ) + "\n" );
845 845
846} 846}
847 847
848void AddressbookWindow::slotSetCategory( int c ) 848void AddressbookWindow::slotSetCategory( int c )
849{ 849{
850 qWarning( "void AddressbookWindow::slotSetCategory( %d ) from %d", c, catMenu->count() ); 850 qWarning( "void AddressbookWindow::slotSetCategory( %d ) from %d", c, catMenu->count() );
851 851
852 QString cat, book; 852 QString cat, book;
853 AbView::Views view = AbView::TableView; 853 AbView::Views view = AbView::TableView;