Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/redirectwidget.cpp
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | 02110-1301, USA. | 17 | 02110-1301, USA. | ||
18 | 18 | | |||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "redirectwidget.h" | 21 | #include "redirectwidget.h" | ||
22 | #include "kernel/mailkernel.h" | 22 | #include "kernel/mailkernel.h" | ||
23 | 23 | | |||
24 | #include <QTreeView> | 24 | #include <QTreeView> | ||
25 | #include <KIconLoader> | | |||
26 | #include <MessageComposer/ComposerLineEdit> | 25 | #include <MessageComposer/ComposerLineEdit> | ||
27 | 26 | | |||
28 | #include <Akonadi/Contact/EmailAddressSelectionDialog> | 27 | #include <Akonadi/Contact/EmailAddressSelectionDialog> | ||
29 | 28 | | |||
30 | #include <QIcon> | 29 | #include <QIcon> | ||
31 | #include <QHBoxLayout> | 30 | #include <QHBoxLayout> | ||
32 | #include <QPushButton> | 31 | #include <QPushButton> | ||
33 | #include <KLocalizedString> | 32 | #include <KLocalizedString> | ||
Show All 11 Lines | 38 | { | |||
45 | mEdit = new MessageComposer::ComposerLineEdit(true); | 44 | mEdit = new MessageComposer::ComposerLineEdit(true); | ||
46 | mEdit->setRecentAddressConfig(KernelIf->config().data()); | 45 | mEdit->setRecentAddressConfig(KernelIf->config().data()); | ||
47 | mEdit->setMinimumWidth(300); | 46 | mEdit->setMinimumWidth(300); | ||
48 | mEdit->setClearButtonEnabled(true); | 47 | mEdit->setClearButtonEnabled(true); | ||
49 | hbox->addWidget(mEdit); | 48 | hbox->addWidget(mEdit); | ||
50 | 49 | | |||
51 | QPushButton *BtnTo = new QPushButton(this); | 50 | QPushButton *BtnTo = new QPushButton(this); | ||
52 | BtnTo->setIcon(QIcon::fromTheme(QStringLiteral("help-contents"))); | 51 | BtnTo->setIcon(QIcon::fromTheme(QStringLiteral("help-contents"))); | ||
53 | BtnTo->setIconSize(QSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall)); | | |||
54 | BtnTo->setToolTip(i18n("Use the Address-Selection Dialog")); | 52 | BtnTo->setToolTip(i18n("Use the Address-Selection Dialog")); | ||
55 | BtnTo->setWhatsThis(i18n("This button opens a separate dialog " | 53 | BtnTo->setWhatsThis(i18n("This button opens a separate dialog " | ||
56 | "where you can select recipients out " | 54 | "where you can select recipients out " | ||
57 | "of all available addresses.")); | 55 | "of all available addresses.")); | ||
58 | hbox->addWidget(BtnTo); | 56 | hbox->addWidget(BtnTo); | ||
59 | connect(BtnTo, &QAbstractButton::clicked, this, &RedirectWidget::slotAddressSelection); | 57 | connect(BtnTo, &QAbstractButton::clicked, this, &RedirectWidget::slotAddressSelection); | ||
60 | 58 | | |||
61 | connect(mEdit, &QLineEdit::textChanged, this, &RedirectWidget::addressChanged); | 59 | connect(mEdit, &QLineEdit::textChanged, this, &RedirectWidget::addressChanged); | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |