Commit f7bb8b69 authored by David Faure's avatar David Faure
Browse files

Use KParts::Part instead of ReadOnlyPart. We are not opening a document, just...

Use KParts::Part instead of ReadOnlyPart. We are not opening a document, just providing a XMLGUI-based plugin.
parent f87404ef
......@@ -95,7 +95,7 @@ bool KMailPlugin::canDecodeMimeData(const QMimeData *mimeData) const
void KMailPlugin::shortcutChanged()
{
KParts::ReadOnlyPart *localPart = part();
KParts::Part *localPart = part();
if (localPart) {
if (localPart->metaObject()->indexOfMethod("updateQuickSearchText()") == -1) {
qCWarning(KMAILPLUGIN_LOG) << "KMailPart part is missing slot updateQuickSearchText()";
......@@ -175,9 +175,9 @@ KMailPlugin::~KMailPlugin()
m_instance = nullptr;
}
KParts::ReadOnlyPart *KMailPlugin::createPart()
KParts::Part *KMailPlugin::createPart()
{
KParts::ReadOnlyPart *part = loadPart();
KParts::Part *part = loadPart();
if (!part) {
return nullptr;
}
......
......@@ -66,7 +66,7 @@ public:
void shortcutChanged() override;
protected:
KParts::ReadOnlyPart *createPart() override;
KParts::Part *createPart() override;
void openComposer(const QUrl &attach = QUrl());
void openComposer(const QString &to);
bool canDecodeMimeData(const QMimeData *) const override;
......
......@@ -104,7 +104,7 @@ void SummaryView::doSync()
fillSyncActionSubEntries();
}
KParts::ReadOnlyPart *SummaryView::createPart()
KParts::Part *SummaryView::createPart()
{
mPart = new SummaryViewPart(core(), aboutData(), this);
mPart->setObjectName(QStringLiteral("summaryPart"));
......
......@@ -43,7 +43,7 @@ public:
const KAboutData aboutData() override;
protected:
KParts::ReadOnlyPart *createPart() override;
KParts::Part *createPart() override;
private:
void doSync();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment