'Exports data for save/restore'

def export_state(self):

    state = WidgetMixin.export_state(self)
    windowstate = self.saveState(self.widget_version)
    state[u'lock_layout'] = self.lock_layout
    state[u'windowstate'] = windowstate.toBase64().data().decode(u'ascii')
    return state
