Changeset View
Changeset View
Standalone View
Standalone View
src/kmreadermainwin.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
65 | #include <AkonadiCore/itemcreatejob.h> | 65 | #include <AkonadiCore/itemcreatejob.h> | ||
66 | #include <AkonadiCore/itemmovejob.h> | 66 | #include <AkonadiCore/itemmovejob.h> | ||
67 | #include <Akonadi/KMime/MessageFlags> | 67 | #include <Akonadi/KMime/MessageFlags> | ||
68 | #include "kpimtextedit/texttospeech.h" | 68 | #include "kpimtextedit/texttospeech.h" | ||
69 | #include <mailcommon/mailutil.h> | 69 | #include <mailcommon/mailutil.h> | ||
70 | 70 | | |||
71 | using namespace MailCommon; | 71 | using namespace MailCommon; | ||
72 | 72 | | |||
73 | KMReaderMainWin::KMReaderMainWin(MessageViewer::Viewer::DisplayFormatMessage format, bool htmlLoadExtOverride, const QString &name) | 73 | KMReaderMainWin::KMReaderMainWin(MessageViewer::Viewer::DisplayFormatMessage format, bool htmlLoadExtDefault, const QString &name) | ||
74 | : KMail::SecondaryWindow(!name.isEmpty() ? name : QStringLiteral("readerwindow#")) | 74 | : KMail::SecondaryWindow(!name.isEmpty() ? name : QStringLiteral("readerwindow#")) | ||
75 | { | 75 | { | ||
76 | mReaderWin = new KMReaderWin(this, this, actionCollection()); | 76 | mReaderWin = new KMReaderWin(this, this, actionCollection()); | ||
77 | mReaderWin->setDisplayFormatMessageOverwrite(format); | 77 | mReaderWin->setDisplayFormatMessageOverwrite(format); | ||
78 | mReaderWin->setHtmlLoadExtOverride(htmlLoadExtOverride); | 78 | mReaderWin->setHtmlLoadExtDefault(htmlLoadExtDefault); | ||
79 | mReaderWin->setDecryptMessageOverwrite(true); | 79 | mReaderWin->setDecryptMessageOverwrite(true); | ||
80 | initKMReaderMainWin(); | 80 | initKMReaderMainWin(); | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | KMReaderMainWin::KMReaderMainWin(const QString &name) | 83 | KMReaderMainWin::KMReaderMainWin(const QString &name) | ||
84 | : KMail::SecondaryWindow(!name.isEmpty() ? name : QStringLiteral("readerwindow#")) | 84 | : KMail::SecondaryWindow(!name.isEmpty() ? name : QStringLiteral("readerwindow#")) | ||
85 | { | 85 | { | ||
86 | mReaderWin = new KMReaderWin(this, this, actionCollection()); | 86 | mReaderWin = new KMReaderWin(this, this, actionCollection()); | ||
▲ Show 20 Lines • Show All 574 Lines • Show Last 20 Lines |