mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-11 00:04:09 -04:00
This widget wraps an existing QgsCodeEditor object in a widget which provides additional standard functionality, currently a line-for-line port of the Python console script editor search tools. The caller must create an unparented QgsCodeEditor object (or a subclass of QgsCodeEditor) first, and then construct a QgsCodeEditorWidget passing this object to the constructor. Ideally, this functionality would be added to the base QgsCodeEditor class itself. But this is NOT possible without considerable API breakage, as QgsCodeEditor currently inherits the QsciScintilla widget. We cannot change QgsCodeEditor to inherit a generic QWidget container containing a QsciScintilla widget + other widgets in a layout without breaking API. I've added a cleanup note for QGIS 4.0 here.