88
88
mUi.pageWidget->insertWidget( 3, customFieldsPage );
89
89
mUi.pageWidget->insertWidget( 4, categoriesPage );
91
connect( mUi.namePageButton, SIGNAL( clicked() ),
92
mMapper, SLOT( map() ) );
93
connect( mUi.internetPageButton, SIGNAL( clicked() ),
94
mMapper, SLOT( map() ) );
95
connect( mUi.personalPageButton, SIGNAL( clicked() ),
96
mMapper, SLOT( map() ) );
97
connect( mUi.customFieldsPageButton, SIGNAL( clicked() ),
98
mMapper, SLOT( map() ) );
99
connect( mUi.categoriesPageButton, SIGNAL( clicked() ),
100
mMapper, SLOT( map() ) );
101
connect( mMapper, SIGNAL( mapped( int ) ),
102
mUi.pageWidget, SLOT( setCurrentIndex( int ) ) );
91
connect( mUi.namePageButton, SIGNAL(clicked()),
92
mMapper, SLOT(map()) );
93
connect( mUi.internetPageButton, SIGNAL(clicked()),
94
mMapper, SLOT(map()) );
95
connect( mUi.personalPageButton, SIGNAL(clicked()),
96
mMapper, SLOT(map()) );
97
connect( mUi.customFieldsPageButton, SIGNAL(clicked()),
98
mMapper, SLOT(map()) );
99
connect( mUi.categoriesPageButton, SIGNAL(clicked()),
100
mMapper, SLOT(map()) );
101
connect( mMapper, SIGNAL(mapped(int)),
102
mUi.pageWidget, SLOT(setCurrentIndex(int)) );
104
104
mUi.pageWidget->setCurrentIndex( 0 );
106
connect( mNamePage.namePartsWidget, SIGNAL( nameChanged( const KABC::Addressee& ) ),
107
mNamePage.displayNameWidget, SLOT( changeName( const KABC::Addressee& ) ) );
108
connect( mNamePage.namePartsWidget, SIGNAL( nameChanged( const KABC::Addressee& ) ),
109
q, SIGNAL( nameChanged( const KABC::Addressee& ) ) );
110
connect( mNamePage.pronunciationLabel, SIGNAL( linkActivated( const QString& ) ),
111
q, SLOT( playPronunciation() ) );
113
connect( mCustomFieldsPage.addCustomFieldButton, SIGNAL( clicked() ),
114
q, SLOT( addCustomField() ) );
116
connect( mCategoriesPage.categoriesButton, SIGNAL( clicked() ),
117
q, SLOT( configureCategories() ) );
106
connect( mNamePage.namePartsWidget, SIGNAL(nameChanged(KABC::Addressee)),
107
mNamePage.displayNameWidget, SLOT(changeName(KABC::Addressee)) );
108
connect( mNamePage.namePartsWidget, SIGNAL(nameChanged(KABC::Addressee)),
109
q, SIGNAL(nameChanged(KABC::Addressee)) );
110
connect( mNamePage.pronunciationLabel, SIGNAL(linkActivated(QString)),
111
q, SLOT(playPronunciation()) );
113
connect( mCustomFieldsPage.addCustomFieldButton, SIGNAL(clicked()),
114
q, SLOT(addCustomField()) );
116
connect( mCategoriesPage.categoriesButton, SIGNAL(clicked()),
117
q, SLOT(configureCategories()) );
119
119
mPersonalPage.birthdayDateEdit->setDate( QDate() );
120
120
mPersonalPage.anniversaryDateEdit->setDate( QDate() );