Messagelib
attachmentpropertiesdialog.cpp
65void AttachmentPropertiesDialog::AttachmentPropertiesDialogPrivate::init(const AttachmentPart::Ptr &part, bool readOnly)
103 buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, q);
108 q->connect(buttonBox->button(QDialogButtonBox::Help), &QAbstractButton::clicked, q, &AttachmentPropertiesDialog::slotHelp);
115void AttachmentPropertiesDialog::AttachmentPropertiesDialogPrivate::mimeTypeChanged(const QString &type)
120 QIcon::fromTheme(mimeType.iconName(), QIcon::fromTheme(QStringLiteral("unknown"))).pixmap(q->style()->pixelMetric(QStyle::PM_MessageBoxIconSize));
227 const QStringList list = QStringList() << QStringLiteral("text/html") << QStringLiteral("text/plain") << QStringLiteral("image/gif")
228 << QStringLiteral("image/jpeg") << QStringLiteral("image/png") << QStringLiteral("application/octet-stream")
294 if (ui->mimeType->currentText().startsWith(QLatin1StringView("message")) && ui->encoding->itemData(ui->encoding->currentIndex()) != KMime::Headers::CE7Bit
299 mPart->setEncoding(KMime::Headers::contentEncoding(ui->encoding->itemData(ui->encoding->currentIndex()).toInt()));
302AttachmentPropertiesDialog::AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly, QWidget *parent)
310AttachmentPropertiesDialog::AttachmentPropertiesDialog(const KMime::Content *content, QWidget *parent)
static KAboutData applicationData()
A job to load an attachment from a mime content.
Definition attachmentfrommimecontentjob.h:26
A dialog for editing attachment properties.
Definition attachmentpropertiesdialog.h:25
AttachmentPart::Ptr attachmentPart() const
Returns the modified attachment.
Definition attachmentpropertiesdialog.cpp:327
bool isEncryptEnabled() const
Returns whether the encryption status of the attachment can be changed.
Definition attachmentpropertiesdialog.cpp:332
AttachmentPropertiesDialog(const AttachmentPart::Ptr &part, bool readOnly=false, QWidget *parent=nullptr)
Creates a new attachment properties dialog.
Definition attachmentpropertiesdialog.cpp:302
void setSignEnabled(bool enabled)
Sets whether the signature status of the attachment can be changed.
Definition attachmentpropertiesdialog.cpp:355
~AttachmentPropertiesDialog() override
Destroys the attachment properties dialog.
void setEncryptEnabled(bool enabled)
Sets whether the encryption status of the attachment can be changed.
Definition attachmentpropertiesdialog.cpp:340
bool isSignEnabled() const
Returns whether the signature status of the attachment can be changed.
Definition attachmentpropertiesdialog.cpp:347
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
KCALUTILS_EXPORT QString mimeType()
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
QString name(GameStandardAction id)
void invokeHelp(const QString &anchor=QString(), const QString &appname=QString())
KIOCORE_EXPORT QString convertSize(KIO::filesize_t size)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
void clicked(bool checked)
void setShortcut(const QKeySequence &key)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void currentTextChanged(const QString &text)
bool openUrl(const QUrl &url)
virtual void accept()
void setModal(bool modal)
virtual void reject()
void accepted()
QPushButton * button(StandardButton which) const const
void rejected()
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
void setDefault(bool)
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
PM_MessageBoxIconSize
Key_Return
CTRL
QUrl resolved(const QUrl &relative) const const
void setQuery(const QString &query, ParsingMode mode)
QWidget(QWidget *parent, Qt::WindowFlags f)
enabled
void setLayout(QLayout *layout)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.