Skip to content
  • David Edmundson's avatar
    Don't rely graphic objects in panel script engine · 0dc7f6c3
    David Edmundson authored and David Edmundson's avatar David Edmundson committed
    The basic design of Plasma is that scripts and and the shell (in theory)
    manipulate a tree of basic applet geometry and configs.
    
    Plasmashell then reacts to those changes and displays them visually with
    a distinct separation between the layout and UI.
    
    Panel's scriptengine seemed to do away with all, and try and manipulate
    the graphic object directly..which might not exist and that leads to
    complex code.
    
    This changes it to read/write from the same config object as
    PanelView will use. More akin to how the script engine for applet and
    contiainment works.
    
    If there's a view for this panel, we update immediately, otherwise it'll
    just get loaded when it's needed. PanelView::reload() has the error
    checking/bounds management so no point duplicating that.
    
    BUG: 355918
    REVIEW: 125921
    0dc7f6c3