diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2018-10-22 15:53:53 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2018-10-23 07:18:25 +0000 |
commit | 4599a9b433dea0061b7d0befc72de2b9d500fcb3 (patch) | |
tree | 5d031b01a54c74373e56f8fc98f31991e3bc3286 /doc | |
parent | cfbf2559f400dfa24b24da03e55f5597ca6d5b69 (diff) | |
download | qt-creator-4599a9b433dea0061b7d0befc72de2b9d500fcb3.tar.gz |
Doc: Describe changing default editors in MIME type settings
Change-Id: I8d9b9400932c564248f5b654cc72c4c794c778ec
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/images/qtcreator-mime-types.png | bin | 11596 -> 50544 bytes | |||
-rw-r--r-- | doc/src/editors/creator-only/creator-mime-types.qdoc | 12 |
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/images/qtcreator-mime-types.png b/doc/images/qtcreator-mime-types.png Binary files differindex 5d53b80898..fc453ff136 100644 --- a/doc/images/qtcreator-mime-types.png +++ b/doc/images/qtcreator-mime-types.png diff --git a/doc/src/editors/creator-only/creator-mime-types.qdoc b/doc/src/editors/creator-only/creator-mime-types.qdoc index de45695725..553f47778c 100644 --- a/doc/src/editors/creator-only/creator-mime-types.qdoc +++ b/doc/src/editors/creator-only/creator-mime-types.qdoc @@ -41,6 +41,8 @@ {MIME type} of the file to determine which mode and editor to use for opening the file. For example, \QC opens C++ source and header files in the C++ editor, and Qt widget based UI files (.ui) in \QD. + For some MIME types, you can change the editor that is used to open the + files of that type by default. To identify the MIME type of a file, \QC uses matching by pattern and matching by contents. First, \QC looks at the filename to check whether it @@ -94,12 +96,18 @@ \note You are recommended not to change the range and priority, because it might cause problems when opening files in \QC. + \li In \uicontrol Handler, double-click the editor name to display a + context-menu where you can select another editor to open the file + in by default. The menu is available only if alternative suitable + editors are available. + \li Click \uicontrol OK. \endlist - To revert all the changes you have made to the MIME type definitions, - select \uicontrol {Reset All}. + To revert the changes you have made to the MIME type definitions, + select \uicontrol {Reset MIME Types}. To revert the changes you have + made to the default editors, select \uicontrol {Reset Handlers}. \note If you now select \uicontrol OK or \uicontrol Apply, you permanently lose all your own patterns and magic headers. The changes are reverted the next |