Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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
Ejemplo n.º 7
0
 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