67
67
topLayout->addWidget( mView );
68
68
topLayout->setStretchFactor( mView, 1 );
70
connect( mView->view()->selectionModel(), SIGNAL( selectionChanged( const QItemSelection&, const QItemSelection& ) ),
71
SLOT( slotSelectionChanged() ) );
72
connect( mView->view(), SIGNAL( doubleClicked( const QModelIndex& ) ),
73
SLOT( slotPicked() ) );
70
connect( mView->view()->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
71
SLOT(slotSelectionChanged()) );
72
connect( mView->view(), SIGNAL(doubleClicked(QModelIndex)),
75
75
mSearchLDAPButton = new QPushButton( i18n("Search &Directory Service"), mainWidget() );
76
connect( mSearchLDAPButton, SIGNAL( clicked() ), SLOT( slotSearchLDAP() ) );
76
connect( mSearchLDAPButton, SIGNAL(clicked()), SLOT(slotSearchLDAP()) );
77
77
topLayout->addWidget( mSearchLDAPButton );
79
79
KConfig config( QLatin1String("kabldaprc") );
91
91
mToButton = new QPushButton( i18n("Add as &To"), mainWidget() );
92
92
buttonLayout->addWidget( mToButton );
93
connect( mToButton, SIGNAL( clicked() ), SLOT( slotToClicked() ) );
93
connect( mToButton, SIGNAL(clicked()), SLOT(slotToClicked()) );
95
95
mCcButton = new QPushButton( i18n("Add as CC"), mainWidget() );
96
96
buttonLayout->addWidget( mCcButton );
97
connect( mCcButton, SIGNAL( clicked() ), SLOT( slotCcClicked() ) );
97
connect( mCcButton, SIGNAL(clicked()), SLOT(slotCcClicked()) );
99
99
mBccButton = new QPushButton( i18n("Add as &BCC"), mainWidget() );
100
100
buttonLayout->addWidget( mBccButton );
101
connect( mBccButton, SIGNAL( clicked() ), SLOT( slotBccClicked() ) );
101
connect( mBccButton, SIGNAL(clicked()), SLOT(slotBccClicked()) );
103
103
QPushButton *closeButton = new QPushButton( i18n("&Cancel"), mainWidget() );
104
104
buttonLayout->addWidget( closeButton );
105
connect( closeButton, SIGNAL( clicked() ), SLOT( close() ) );
105
connect( closeButton, SIGNAL(clicked()), SLOT(close()) );
107
107
mView->searchLineEdit()->setFocus();
218
218
if ( !mLdapSearchDialog ) {
219
219
mLdapSearchDialog = new KLDAP::LdapSearchDialog( this );
220
connect( mLdapSearchDialog, SIGNAL( contactsAdded() ),
221
SLOT(ldapSearchResult() ) );
220
connect( mLdapSearchDialog, SIGNAL(contactsAdded()),
221
SLOT(ldapSearchResult()) );
224
224
mLdapSearchDialog->setSearchText( mView->searchLineEdit()->text() );