diff options
author | Kai Koehne <kai.koehne@qt.io> | 2016-09-30 12:14:43 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2016-10-04 13:32:06 +0000 |
commit | 484be9a4d6b24697a6355bf6a3f1cde52baedd32 (patch) | |
tree | b28bf896ed71b6d5960e0663542cb2798ad01ebd /examples/webenginewidgets/markdowneditor/doc/src | |
parent | 0a336d5110cdc677768f9f50151ee77663cfe6c3 (diff) |
MarkDownEditor: Hide context menu
Most actions do not make sense. A custom context menu might be good for
text actions, but would require reimplementing QWebEngineView.
Change-Id: Idf94939c16469e1dcee96d9ecfd0eb5309589fdd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'examples/webenginewidgets/markdowneditor/doc/src')
-rw-r--r-- | examples/webenginewidgets/markdowneditor/doc/src/markdowneditor.qdoc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/webenginewidgets/markdowneditor/doc/src/markdowneditor.qdoc b/examples/webenginewidgets/markdowneditor/doc/src/markdowneditor.qdoc index 3a9908ea6..0239c1065 100644 --- a/examples/webenginewidgets/markdowneditor/doc/src/markdowneditor.qdoc +++ b/examples/webenginewidgets/markdowneditor/doc/src/markdowneditor.qdoc @@ -113,11 +113,16 @@ \quotefromfile webenginewidgets/markdowneditor/mainwindow.cpp \skipto MainWindow::MainWindow - \printto connect + \printto PreviewPage The constructor first calls \c setupUi to construct the widgets and menu actions according to the UI file. The text editor font is set to one - with a fixed character width. It then makes sure our custom + with a fixed character width, and the QWebEngineView widget is told not + to show a context menu. + + \printto connect + + Here the constructor makes sure our custom \c PreviewPage is used by the QWebEngineView instance in \c{ui->preview}. \printto ui->preview |