Skip to content

Commit

Permalink
db manager: re-enable margins with line numbers in sql editor
Browse files Browse the repository at this point in the history
(fixes #15110)
  • Loading branch information
jef-n committed Jun 22, 2016
1 parent c92afcf commit d9f934f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -70,6 +70,7 @@ def __init__(self, iface, db, parent=None):

self.editSql.setFocus()
self.editSql.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.editSql.setMarginVisible(True)
self.initCompleter()

# allow copying results
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgscodeeditor.h
Expand Up @@ -39,8 +39,8 @@ class GUI_EXPORT QgsCodeEditor : public QsciScintilla
*
* @param parent The parent QWidget
* @param title The title to show in the code editor dialog
* @param folding False: Enable margin for code editor
* @param margin False: Enable folding for code editor
* @param folding false: Enable folding for code editor
* @param margin false: Enable margin for code editor
* @note added in 2.6
*/
QgsCodeEditor( QWidget *parent = nullptr, const QString& title = "", bool folding = false, bool margin = false );
Expand Down

0 comments on commit d9f934f

Please sign in to comment.