app: Support object registry in get_all_objects.
This commit is contained in:
parent
981604fc8b
commit
097645ae8e
@ -475,10 +475,11 @@ class Application(QApplication):
|
|||||||
|
|
||||||
def get_all_objects(self):
|
def get_all_objects(self):
|
||||||
"""Get all children of an object recursively as a string."""
|
"""Get all children of an object recursively as a string."""
|
||||||
lines = []
|
qtb_lines = self.obj.dump_objects()
|
||||||
self._get_pyqt_objects(lines, self)
|
pyqt_lines = []
|
||||||
lines.insert(0, '{} objects:'.format(len(lines)))
|
self._get_pyqt_objects(pyqt_lines, self)
|
||||||
return '\n'.join(lines)
|
pyqt_lines.insert(0, '{} PyQt objects:'.format(len(pyqt_lines)))
|
||||||
|
return '\n'.join([''] + qtb_lines + [''] + pyqt_lines)
|
||||||
|
|
||||||
def _recover_pages(self):
|
def _recover_pages(self):
|
||||||
"""Try to recover all open pages.
|
"""Try to recover all open pages.
|
||||||
|
Loading…
Reference in New Issue
Block a user