Messagelib
attachmentpropertiesdialog.cpp
64 void AttachmentPropertiesDialog::AttachmentPropertiesDialogPrivate::init(const AttachmentPart::Ptr &part, bool readOnly)
102 buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, q);
107 q->connect(buttonBox->button(QDialogButtonBox::Help), &QAbstractButton::clicked, q, &AttachmentPropertiesDialog::slotHelp);
114 void AttachmentPropertiesDialog::AttachmentPropertiesDialogPrivate::mimeTypeChanged(const QString &type)
119 QIcon::fromTheme(mimeType.iconName(), QIcon::fromTheme(QStringLiteral("unknown"))).pixmap(q->style()->pixelMetric(QStyle::PM_MessageBoxIconSize));
226 const QStringList list = QStringList() << QStringLiteral("text/html") << QStringLiteral("text/plain") << QStringLiteral("image/gif")
227 << QStringLiteral("image/jpeg") << QStringLiteral("image/png") << QStringLiteral("application/octet-stream")
293 if (ui->mimeType->currentText().startsWith(QLatin1String("message")) && ui->encoding->itemData(ui->encoding->currentIndex()) != KMime::Headers::CE7Bit
298 mPart->setEncoding(KMime::Headers::contentEncoding(ui->encoding->itemData(ui->encoding->currentIndex()).toInt()));
301 AttachmentPropertiesDialog::AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly, QWidget *parent)
309 AttachmentPropertiesDialog::AttachmentPropertiesDialog(const KMime::Content *content, QWidget *parent)
AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly=false, QWidget *parent=nullptr)
Creates a new attachment properties dialog.
Definition: attachmentpropertiesdialog.cpp:301
virtual void reject()
void setShortcut(const QKeySequence &key)
QCA_EXPORT void init()
void setEncryptEnabled(bool enabled)
Sets whether the encryption status of the attachment can be changed.
Definition: attachmentpropertiesdialog.cpp:339
void clicked(bool checked)
QIcon fromTheme(const QString &name)
KCALUTILS_EXPORT QString mimeType()
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
~AttachmentPropertiesDialog() override
Destroys the attachment properties dialog.
A job to load an attachment from a mime content.
Definition: attachmentfrommimecontentjob.h:25
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
bool isSignEnabled() const
Returns whether the signature status of the attachment can be changed.
Definition: attachmentpropertiesdialog.cpp:346
QString i18n(const char *text, const TYPE &arg...)
bool isEncryptEnabled() const
Returns whether the encryption status of the attachment can be changed.
Definition: attachmentpropertiesdialog.cpp:331
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
void currentTextChanged(const QString &text)
AttachmentPart::Ptr attachmentPart() const
Returns the modified attachment.
Definition: attachmentpropertiesdialog.cpp:326
void setWindowTitle(const QString &)
void accepted()
virtual void accept()
static KAboutData applicationData()
A dialog for editing attachment properties.
Definition: attachmentpropertiesdialog.h:24
Key_Return
enabled
PM_MessageBoxIconSize
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) const const
void rejected()
QPushButton * button(QDialogButtonBox::StandardButton which) const const
QString fromLatin1(const char *str, int size)
QString name(StandardShortcut id)
CTRL
void setSignEnabled(bool enabled)
Sets whether the signature status of the attachment can be changed.
Definition: attachmentpropertiesdialog.cpp:354
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void setDefault(bool)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.