kmail
saveasfilejob.cpp
Go to the documentation of this file.
49 dlg->setFilter( QString::fromLatin1("text/html text/plain application/vnd.oasis.opendocument.text") );
58 if (dlg->currentFilter() == QString::fromLatin1("text/plain") || filename.endsWith(QLatin1String(".txt"))) {
60 } else if (dlg->currentFilter() == QString::fromLatin1("text/html")|| filename.endsWith(QLatin1String(".html"))) {
62 } else if (dlg->currentFilter() == QString::fromLatin1("application/vnd.oasis.opendocument.text") || filename.endsWith(QLatin1String(".odf"))) {
void setEditor(MessageComposer::KMeditor *editor)
Definition: saveasfilejob.cpp:80
void setParentWidget(QWidget *parentWidget)
Definition: saveasfilejob.cpp:85
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
void deleteLater()
bool write(const QTextDocument *document)
QString fromLatin1(const char *str, int size)
void setFormat(const QByteArray &format)
void setFileName(const QString &fileName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.