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): """Imports data for save/restore""" result = MainWindow.apply_state(self, state) self.lock_layout_action.setChecked(state.get('lock_layout', False)) show_status_filter = state.get('show_status_filter', False) self.statuswidget.filter_widget.setVisible(show_status_filter) return result
def apply_state(self, state): result = MainWindow.apply_state(self, state) try: count = state['count'] if self.dag.overridden('count'): count = self.dag.count except: count = self.dag.count result = False self.dag.set_count(count) self.lock_layout_action.setChecked(state.get('lock_layout', False)) return result
def apply_state(self, state): """Imports data for save/restore""" result = MainWindow.apply_state(self, state) self.lock_layout_action.setChecked(state.get('lock_layout', False)) 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)