Mailcommon
7 #include "snippetselectattachmentdialog.h"
8 #include "snippetselectattachmentwidget.h"
9 #include <KConfigGroup>
10 #include <KLocalizedString>
11 #include <KSharedConfig>
12 #include <KWindowConfig>
13 #include <QDialogButtonBox>
14 #include <QPushButton>
15 #include <QVBoxLayout>
19 static const char mySnippetSelectAttachmentDialogGroupName[] =
"SnippetSelectAttachmentDialog";
22 SnippetSelectAttachmentDialog::SnippetSelectAttachmentDialog(
QWidget *parent)
24 , mAttachmentWidget(new SnippetSelectAttachmentWidget(this))
26 setWindowTitle(
i18nc(
"@title:window",
"Select Attachments"));
28 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
30 mAttachmentWidget->setObjectName(QStringLiteral(
"attachmentwidget"));
31 mainLayout->addWidget(mAttachmentWidget);
34 buttonBox->setObjectName(QStringLiteral(
"button"));
41 mainLayout->addWidget(buttonBox);
46 SnippetSelectAttachmentDialog::~SnippetSelectAttachmentDialog()
51 void SnippetSelectAttachmentDialog::setAttachments(
const QStringList &lst)
53 mAttachmentWidget->setAttachments(lst);
56 QStringList SnippetSelectAttachmentDialog::attachments()
const
58 return mAttachmentWidget->attachments();
61 void SnippetSelectAttachmentDialog::readConfig()
64 windowHandle()->resize(
QSize(300, 350));
67 resize(windowHandle()->size());
70 void SnippetSelectAttachmentDialog::writeConfig()
77 #include "moc_snippetselectattachmentdialog.cpp"
static KSharedConfig::Ptr openStateConfig(const QString &fileName=QString())
QAction * create(StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent)
KCONFIGGUI_EXPORT void restoreWindowSize(QWindow *window, const KConfigGroup &config)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
KCONFIGGUI_EXPORT void saveWindowSize(const QWindow *window, KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:56:34 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.