diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-06-27 15:47:10 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-07-13 19:14:21 +0200 |
| commit | 4ed257c5e476ab82b1e66c15574a4ebb016d179e (patch) | |
| tree | 691e612537b59989757545841fbe309627d73584 /examples/demos/documentviewer/doc/abstractviewer.py.rstinc | |
| parent | b08cb33e0a46a490821a011a7433cb846da2acad (diff) | |
Port the document viewer example
Task-number: PYSIDE-2206
Change-Id: Ia01043b4f9510319e5a751ee3bf1520dcec90f20
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/demos/documentviewer/doc/abstractviewer.py.rstinc')
| -rw-r--r-- | examples/demos/documentviewer/doc/abstractviewer.py.rstinc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/demos/documentviewer/doc/abstractviewer.py.rstinc b/examples/demos/documentviewer/doc/abstractviewer.py.rstinc new file mode 100644 index 000000000..4c040b956 --- /dev/null +++ b/examples/demos/documentviewer/doc/abstractviewer.py.rstinc @@ -0,0 +1,25 @@ +``AbstractViewer`` provides a generalized API to view, save, and print a +document. Properties of both the document and the viewer can be queried: + + * Does the document have content? + * Has it been modified? + * Is an overview (thumbnails or bookmarks) supported? + +``AbstractViewer`` provides protected methods for derived classes to create +actions and menus on the main window. In order to display these assets on the +main window, they are parented to it. ``AbstractViewer`` is responsible for +removing and destroying the UI assets it creates. It inherits from ``QObject`` +to implement signals and slots. + +The ``uiInitialized()`` signal is emitted after a viewer receives all necessary +information about UI assets on the main window. + +The ``printingEnabledChanged()`` signal is emitted when document printing is +either enabled or disabled. This happens after a new document was successfully +loaded, or, for example, all content was removed. + +The ``printStatusChanged`` signal notifies about changes in its progress after +starting the printing process. + +The ``documentLoaded()`` signal notifies the application that a document was +successfully loaded. |
