Don't show code folding margin when it isn't supported
Introduce setCodeFoldingSupported to the BaseTextEditor, and only enabled it for the C++ and QtScript editors. This removes the useless margin meant for code folding markers from the plain text editor and .pro file editor.
Showing
- src/plugins/cppeditor/cppeditor.cpp 1 addition, 0 deletionssrc/plugins/cppeditor/cppeditor.cpp
- src/plugins/qtscripteditor/qtscripteditor.cpp 1 addition, 1 deletionsrc/plugins/qtscripteditor/qtscripteditor.cpp
- src/plugins/texteditor/basetexteditor.cpp 18 additions, 1 deletionsrc/plugins/texteditor/basetexteditor.cpp
- src/plugins/texteditor/basetexteditor.h 4 additions, 1 deletionsrc/plugins/texteditor/basetexteditor.h
- src/plugins/texteditor/basetexteditor_p.h 1 addition, 0 deletionssrc/plugins/texteditor/basetexteditor_p.h
Loading
Please register or sign in to comment