Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
4f0d41e9
Commit
4f0d41e9
authored
7 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Use 4 spaces for editor indentation.
Refs #21251
parent
3272b8ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
qt/python/mantidqt/widgets/codeeditor/interpreter.py
+6
-1
6 additions, 1 deletion
qt/python/mantidqt/widgets/codeeditor/interpreter.py
qt/python/mantidqt/widgets/src/_widgetscore.sip
+2
-0
2 additions, 0 deletions
qt/python/mantidqt/widgets/src/_widgetscore.sip
with
8 additions
and
1 deletion
qt/python/mantidqt/widgets/codeeditor/interpreter.py
+
6
−
1
View file @
4f0d41e9
...
...
@@ -33,8 +33,9 @@ from mantidqt.widgets.codeeditor.execution import PythonCodeExecution
IDLE_STATUS_MSG
=
"
Status: Idle
"
RUNNING_STATUS_MSG
=
"
Status: Running
"
# Editor
colors
# Editor
CURRENTLINE_BKGD_COLOR
=
QColor
(
247
,
236
,
248
)
TAB_WIDTH
=
4
class
PythonFileInterpreter
(
QWidget
):
...
...
@@ -71,6 +72,10 @@ class PythonFileInterpreter(QWidget):
def
_setup_editor
(
self
,
default_content
):
editor
=
self
.
editor
# use tabs not spaces for indentation
editor
.
setIndentationsUseTabs
(
False
)
editor
.
setTabWidth
(
TAB_WIDTH
)
# show current editing line but in a softer color
editor
.
setCaretLineBackgroundColor
(
CURRENTLINE_BKGD_COLOR
)
editor
.
setCaretLineVisible
(
True
)
...
...
This diff is collapsed.
Click to expand it.
qt/python/mantidqt/widgets/src/_widgetscore.sip
+
2
−
0
View file @
4f0d41e9
...
...
@@ -86,10 +86,12 @@ public:
void setCaretLineBackgroundColor (const QColor & col);
void setCaretLineVisible(bool enable);
void setIndentationsUseTabs(bool tabs);
void setFileName(const QString &filename);
void setMarginWidth(int margin, int width);
void setReadOnly(bool ro);
void setSelection(int lineFrom, int indexFrom, int lineTo, int indexTo);
void setTabWidth(int width);
void setText(const QString &text);
public slots:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment