Commit ced5cd0f 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 075d435b
......@@ -66,9 +66,9 @@ JournalPlugin::~JournalPlugin()
{
}
KParts::ReadOnlyPart *JournalPlugin::createPart()
KParts::Part *JournalPlugin::createPart()
{
KParts::ReadOnlyPart *part = loadPart();
KParts::Part *part = loadPart();
if (!part) {
return nullptr;
......
......@@ -52,7 +52,7 @@ public:
OrgKdeKorganizerCalendarInterface *interface();
protected:
KParts::ReadOnlyPart *createPart() override;
KParts::Part *createPart() override;
private Q_SLOTS:
void slotNewJournal();
......
......@@ -85,9 +85,9 @@ KontactInterface::Summary *KOrganizerPlugin::createSummaryWidget(QWidget *parent
return new ApptSummaryWidget(this, parent);
}
KParts::ReadOnlyPart *KOrganizerPlugin::createPart()
KParts::Part *KOrganizerPlugin::createPart()
{
KParts::ReadOnlyPart *part = loadPart();
KParts::Part *part = loadPart();
if (!part) {
return nullptr;
......
......@@ -59,7 +59,7 @@ public:
OrgKdeKorganizerCalendarInterface *interface();
protected:
KParts::ReadOnlyPart *createPart() override;
KParts::Part *createPart() override;
private Q_SLOTS:
void slotNewEvent();
......
......@@ -82,9 +82,9 @@ KontactInterface::Summary *TodoPlugin::createSummaryWidget(QWidget *parent)
return new TodoSummaryWidget(this, parent);
}
KParts::ReadOnlyPart *TodoPlugin::createPart()
KParts::Part *TodoPlugin::createPart()
{
KParts::ReadOnlyPart *part = loadPart();
KParts::Part *part = loadPart();
if (!part) {
return nullptr;
......
......@@ -57,7 +57,7 @@ public:
OrgKdeKorganizerCalendarInterface *interface();
protected:
KParts::ReadOnlyPart *createPart() override;
KParts::Part *createPart() override;
private Q_SLOTS:
void slotNewTodo();
......
......@@ -46,7 +46,7 @@ public:
KontactInterface::Summary *createSummaryWidget(QWidget *parentWidget) override;
protected:
KParts::ReadOnlyPart *createPart() override
KParts::Part *createPart() override
{
return nullptr;
}
......
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