MessageViewer plugin: create EventEdit widget on demand.

Authored by dfaure on Jul 14 2016, 12:53 PM.

Description

MessageViewer plugin: create EventEdit widget on demand.

Summary:
This avoids creating a CollectionComboBox on startup (which includes a Monitor,
an ETM and 3 proxies on top), which might never be used if the user doesn't
use the "create event" feature.

The same change should of course be done to noteedit and todoedit.

The unittest had to be adjusted because it was checking that the widget
was created upfront and hidden, which is exactly what this patch changes.

Test Plan:
Ctrl+E in kmail still brings up the event edit widget,
without any noticeable delay the first time.

Reviewers: knauss, mlaurent

Reviewed By: knauss, mlaurent

Subscribers: knauss, kde-pim, KDE PIM

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D2161

Details

Committed
dfaureJul 14 2016, 1:01 PM
Reviewer
knauss
Differential Revision
D2161: MessageViewer plugin: create EventEdit widget on demand.
Parents
R81:fe353ac7408e: I hope that it fixes build on CI
Branches
Unknown
Tags
Unknown