Commit 1b0678b4 authored by David Faure's avatar David Faure
Browse files

Partial revert, this needs a KParts fix before it can compile

parent 606ef64d
......@@ -54,7 +54,7 @@ K_PLUGIN_FACTORY(KMailFactory, registerPlugin<KMailPart>();
using namespace KMail;
KMailPart::KMailPart(QWidget *parentWidget, QObject *parent, const QVariantList &)
: KParts::Part(parent)
: KParts::ReadOnlyPart(parent)
, mParentWidget(parentWidget)
{
setComponentName(QStringLiteral("kmail2"), i18n("KMail2"));
......@@ -114,11 +114,16 @@ void KMailPart::updateQuickSearchText()
mainWidget->updateQuickSearchLineText();
}
bool KMailPart::openFile()
{
return true;
}
//-----------------------------------------------------------------------------
void KMailPart::guiActivateEvent(KParts::GUIActivateEvent *e)
{
KParts::Part::guiActivateEvent(e);
KParts::ReadOnlyPart::guiActivateEvent(e);
if (e->activated()) {
mainWidget->initializeFilterActions(true);
mainWidget->tagActionManager()->createActions();
......
......@@ -32,7 +32,7 @@
class KMMainWidget;
class KMailPart : public KParts::Part
class KMailPart : public KParts::ReadOnlyPart
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.kmail.kmailpart")
......@@ -49,6 +49,7 @@ public Q_SLOTS:
void updateQuickSearchText();
protected:
bool openFile() override;
void guiActivateEvent(KParts::GUIActivateEvent *e) override;
private:
......
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