MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / load_view_state

Method load_view_state

src/ui/editor/view_state_manager.py:31–42  ·  view source on GitHub ↗

Loads and applies the view's transform and center point from QSettings.

(self)

Source from the content-addressed store, hash-verified

29
30
31 def load_view_state(self):
32 """Loads and applies the view's transform and center point from QSettings."""
33 if self.file_ops.current_file_path:
34 self.settings.beginGroup(f"view_state/{self.file_ops.current_file_path}")
35 transform = self.settings.value("transform")
36 center_point = self.settings.value("center_point")
37 self.settings.endGroup()
38
39 if transform:
40 self.view.setTransform(transform)
41 if center_point:
42 self.view.centerOn(center_point)

Callers 2

__init__Method · 0.80
on_loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected