Changeset View
Changeset View
Standalone View
Standalone View
src/ui/keyselectiondialog.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | #include <gpgme++/key.h> | 46 | #include <gpgme++/key.h> | ||
47 | #include <gpgme++/keylistresult.h> | 47 | #include <gpgme++/keylistresult.h> | ||
48 | 48 | | |||
49 | #include <qgpgme/keylistjob.h> | 49 | #include <qgpgme/keylistjob.h> | ||
50 | #include <qgpgme/protocol.h> | 50 | #include <qgpgme/protocol.h> | ||
51 | 51 | | |||
52 | // KDE | 52 | // KDE | ||
53 | #include <KLocalizedString> | 53 | #include <KLocalizedString> | ||
54 | #include <kwindowsystem.h> | | |||
55 | #include <kconfig.h> | 54 | #include <kconfig.h> | ||
56 | #include <kmessagebox.h> | 55 | #include <kmessagebox.h> | ||
57 | #include <QPushButton> | 56 | #include <QPushButton> | ||
58 | #include <kconfiggroup.h> | 57 | #include <kconfiggroup.h> | ||
59 | #include <QMenu> | 58 | #include <QMenu> | ||
60 | #include <QLineEdit> | 59 | #include <QLineEdit> | ||
61 | 60 | | |||
62 | // Qt | 61 | // Qt | ||
▲ Show 20 Lines • Show All 445 Lines • ▼ Show 20 Line(s) | 411 | { | |||
508 | connect(user2Button, &QPushButton::clicked, this, [this]() { slotStartCertificateManager(); }); | 507 | connect(user2Button, &QPushButton::clicked, this, [this]() { slotStartCertificateManager(); }); | ||
509 | connect(mOkButton, &QPushButton::clicked, this, &KeySelectionDialog::slotOk); | 508 | connect(mOkButton, &QPushButton::clicked, this, &KeySelectionDialog::slotOk); | ||
510 | connect(buttonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &KeySelectionDialog::slotCancel); | 509 | connect(buttonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &KeySelectionDialog::slotCancel); | ||
511 | slotRereadKeys(); | 510 | slotRereadKeys(); | ||
512 | mTopLayout->activate(); | 511 | mTopLayout->activate(); | ||
513 | 512 | | |||
514 | if (qApp) { | 513 | if (qApp) { | ||
515 | QSize dialogSize(sizeHint()); | 514 | QSize dialogSize(sizeHint()); | ||
516 | KWindowSystem::setIcons(winId(), qApp->windowIcon().pixmap(32, 32), | | |||
517 | qApp->windowIcon().pixmap(16, 16)); | | |||
518 | | ||||
519 | KConfigGroup dialogConfig(KSharedConfig::openConfig(), "Key Selection Dialog"); | 515 | KConfigGroup dialogConfig(KSharedConfig::openConfig(), "Key Selection Dialog"); | ||
520 | dialogSize = dialogConfig.readEntry("Dialog size", dialogSize); | 516 | dialogSize = dialogConfig.readEntry("Dialog size", dialogSize); | ||
521 | const QByteArray headerState = dialogConfig.readEntry("header", QByteArray()); | 517 | const QByteArray headerState = dialogConfig.readEntry("header", QByteArray()); | ||
522 | if (!headerState.isEmpty()) { | 518 | if (!headerState.isEmpty()) { | ||
523 | mKeyListView->header()->restoreState(headerState); | 519 | mKeyListView->header()->restoreState(headerState); | ||
524 | } | 520 | } | ||
525 | resize(dialogSize); | 521 | resize(dialogSize); | ||
526 | } | 522 | } | ||
▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines |