[Widget Explorer] Make it feel a lot quicker

Review Request #126163 - Created Nov. 24, 2015 and submitted

Kai Uwe Broulik
master, 5.5?

Widget Explorer takes quite a while to open. Especially now that we load basically double the number of items (two columns) and significantly more complex SVGs. This patch uses a couple of tricks to make it feel a lot faster:
- Create context menu items on demand
- Set the model for the list after a slight delay
- Some minor cleanups

By setting the model later we let the dialog slide in first (KWin does the animation anyway so it won't block) and then nicely fade in the view once we have loaded it.

I have noticed that the applet item model which gets the decoration role from the applet package can take quite a while blocking the explorer. It might also be worth investigating whether we should keep the WidgetExplorer around when it has been opened once (I mean the model, not the QML view) so we save creating the model everytime we open it again.

Feels a lot quicker now.


  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Andreas Kainz
Marco Martin
Kai Uwe Broulik
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 7eb5de9feaf43d1b76c3f2d4e0b8ad9643135cf0 by Kai Uwe Broulik to branch Plasma/5.5.