Changeset View
Changeset View
Standalone View
Standalone View
src/libkdepim/ldap/ldapsearchdialog.cpp
Show First 20 Lines • Show All 477 Lines • ▼ Show 20 Line(s) | 426 | public: | |||
---|---|---|---|---|---|
478 | KLineEdit *searchLine = nullptr; | 478 | KLineEdit *searchLine = nullptr; | ||
479 | QPushButton *user1Button = nullptr; | 479 | QPushButton *user1Button = nullptr; | ||
480 | }; | 480 | }; | ||
481 | 481 | | |||
482 | LdapSearchDialog::LdapSearchDialog(QWidget *parent) | 482 | LdapSearchDialog::LdapSearchDialog(QWidget *parent) | ||
483 | : QDialog(parent) | 483 | : QDialog(parent) | ||
484 | , d(new Private(this)) | 484 | , d(new Private(this)) | ||
485 | { | 485 | { | ||
486 | setWindowTitle(i18n("Import Contacts from LDAP")); | 486 | setWindowTitle(i18nc("@title:window", "Import Contacts from LDAP")); | ||
487 | QVBoxLayout *mainLayout = new QVBoxLayout(this); | 487 | QVBoxLayout *mainLayout = new QVBoxLayout(this); | ||
488 | 488 | | |||
489 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, this); | 489 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, this); | ||
490 | d->user1Button = new QPushButton; | 490 | d->user1Button = new QPushButton; | ||
491 | buttonBox->addButton(d->user1Button, QDialogButtonBox::ActionRole); | 491 | buttonBox->addButton(d->user1Button, QDialogButtonBox::ActionRole); | ||
492 | 492 | | |||
493 | QPushButton *user2Button = new QPushButton; | 493 | QPushButton *user2Button = new QPushButton; | ||
494 | buttonBox->addButton(user2Button, QDialogButtonBox::ActionRole); | 494 | buttonBox->addButton(user2Button, QDialogButtonBox::ActionRole); | ||
▲ Show 20 Lines • Show All 377 Lines • ▼ Show 20 Line(s) | 847 | { | |||
872 | accept(); | 872 | accept(); | ||
873 | } | 873 | } | ||
874 | 874 | | |||
875 | void LdapSearchDialog::slotUser2() | 875 | void LdapSearchDialog::slotUser2() | ||
876 | { | 876 | { | ||
877 | // Configure LDAP servers | 877 | // Configure LDAP servers | ||
878 | 878 | | |||
879 | QPointer<KCMultiDialog> dialog = new KCMultiDialog(this); | 879 | QPointer<KCMultiDialog> dialog = new KCMultiDialog(this); | ||
880 | dialog->setWindowTitle(i18n("Configure the Address Book LDAP Settings")); | 880 | dialog->setWindowTitle(i18nc("@title:window", "Configure the Address Book LDAP Settings")); | ||
881 | dialog->addModule(QStringLiteral("kcmldap.desktop")); | 881 | dialog->addModule(QStringLiteral("kcmldap.desktop")); | ||
882 | 882 | | |||
883 | if (dialog->exec()) { //krazy:exclude=crashy | 883 | if (dialog->exec()) { //krazy:exclude=crashy | ||
884 | d->restoreSettings(); | 884 | d->restoreSettings(); | ||
885 | } | 885 | } | ||
886 | delete dialog; | 886 | delete dialog; | ||
887 | } | 887 | } | ||
888 | 888 | | |||
889 | void LdapSearchDialog::slotCancelClicked() | 889 | void LdapSearchDialog::slotCancelClicked() | ||
890 | { | 890 | { | ||
891 | d->slotStopSearch(); | 891 | d->slotStopSearch(); | ||
892 | reject(); | 892 | reject(); | ||
893 | } | 893 | } | ||
894 | 894 | | |||
895 | #include "moc_ldapsearchdialog.cpp" | 895 | #include "moc_ldapsearchdialog.cpp" |