diff options
| author | Nico Vertriest <nico.vertriest@qt.io> | 2020-08-05 11:49:23 +0200 |
|---|---|---|
| committer | Paul Wicking <paul.wicking@qt.io> | 2020-09-01 06:13:07 +0200 |
| commit | e81383eb0994a37b9489a2aebd0459e161dbeed2 (patch) | |
| tree | 0245296bfdcbc7763cd7f49ea86d0d553ee5dde2 /src/gui/doc/snippets/textdocument-selections/mainwindow.h | |
| parent | b5a1e7ac5cfcca1f54333843310ce81b9e9d9c7d (diff) | |
Doc: Make Qt Gui snippets compilable - textdocument-selections
Task-number: QTBUG-81486
Change-Id: I467ca4d5ecd33f84e44b456a9559748ffd6cc53c
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-selections/mainwindow.h')
| -rw-r--r-- | src/gui/doc/snippets/textdocument-selections/mainwindow.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/doc/snippets/textdocument-selections/mainwindow.h b/src/gui/doc/snippets/textdocument-selections/mainwindow.h index 7b75b13e82a..8327a558772 100644 --- a/src/gui/doc/snippets/textdocument-selections/mainwindow.h +++ b/src/gui/doc/snippets/textdocument-selections/mainwindow.h @@ -77,12 +77,12 @@ public slots: void updateMenus(); private: - QAction *cutAction; - QAction *copyAction; - QAction *pasteAction; + QAction *cutAction = nullptr; + QAction *copyAction = nullptr; + QAction *pasteAction = nullptr; QString currentFile; - QTextEdit *editor; - QTextDocument *document; + QTextEdit *editor = nullptr; + QTextDocument *document = nullptr; QTextDocumentFragment selection; }; |
