Allow lazy updates of header and body contents in Expander

Bug #844872 reported by Jonathan Jacobs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Methanal
Fix Released
Low
Jonathan Jacobs

Bug Description

Tristan's suggestion:

def getHeaderContent(self):
    content = self.headerFactory()
    if content == self.headerContent:
        return None
    content.setFragmentParent(self)
    self.headerContent = content
    return content

def updateRemoteHeaderContent(self):
    content = self.getHeaderContent()
    if content is not None:
        return self.callRemote(
            'setContentFromWidgetInfo', content, u'header')

Related branches

Changed in methanal:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Jonathan Jacobs (jjacobs)
milestone: none → 0.2.2
Changed in methanal:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.