Skip to content
Permalink
Browse files

db manager: re-enable margins with line numbers in sql editor

(fixes #15110)

(cherry picked from commit d9f934f)
  • Loading branch information
jef-n committed Jun 26, 2016
1 parent a7dcaad commit ed786d1909dc412fa9ea5da7101e35f90e1236b9
Showing with 3 additions and 2 deletions.
  1. +1 −0 python/plugins/db_manager/dlg_sql_window.py
  2. +2 −2 src/gui/qgscodeeditor.h
@@ -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
@@ -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 );

0 comments on commit ed786d1

Please sign in to comment.
You can’t perform that action at this time.