Skip to content

Commit d9f934f

Browse files
committed
db manager: re-enable margins with line numbers in sql editor
(fixes #15110)
1 parent c92afcf commit d9f934f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

python/plugins/db_manager/dlg_sql_window.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def __init__(self, iface, db, parent=None):
7070

7171
self.editSql.setFocus()
7272
self.editSql.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
73+
self.editSql.setMarginVisible(True)
7374
self.initCompleter()
7475

7576
# allow copying results

src/gui/qgscodeeditor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class GUI_EXPORT QgsCodeEditor : public QsciScintilla
3939
*
4040
* @param parent The parent QWidget
4141
* @param title The title to show in the code editor dialog
42-
* @param folding False: Enable margin for code editor
43-
* @param margin False: Enable folding for code editor
42+
* @param folding false: Enable folding for code editor
43+
* @param margin false: Enable margin for code editor
4444
* @note added in 2.6
4545
*/
4646
QgsCodeEditor( QWidget *parent = nullptr, const QString& title = "", bool folding = false, bool margin = false );

0 commit comments

Comments
 (0)