def apply_state(self, state): """Imports data for save/restore""" # 1 is the widget version; change when widgets are added/removed MainWindow.apply_state(self, state) qtutils.apply_window_state(self, state, 1) for widget in self.dockwidgets: widget.titleBarWidget().update_tooltips()
def apply_state(self, state): WidgetMixin.apply_state(self, state) result = qtutils.apply_window_state(self, state, self.widget_version) self.lock_layout = state.get('lock_layout', self.lock_layout) self.update_dockwidget_lock_state() self.update_dockwidget_tooltips() return result
def apply_state(self, state): """Imports data for save/restore""" # 1 is the widget version; change when widgets are added/removed MainWindow.apply_state(self, state) qtutils.apply_window_state(self, state, 1)
def apply_state(self, state): WidgetMixin.apply_state(self, state) result = qtutils.apply_window_state(self, state, self.widget_version) for widget in self.dockwidgets: widget.titleBarWidget().update_tooltips() return result