Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Cantor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Education
Cantor
Commits
22e1f386
Commit
22e1f386
authored
Sep 10, 2020
by
Nikita Sirgienko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Juila] Don't show internal Julia variables in Variable Manager
parent
76c6c501
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/backends/julia/juliavariablemodel.cpp
src/backends/julia/juliavariablemodel.cpp
+2
-1
src/backends/julia/juliavariablemodel.h
src/backends/julia/juliavariablemodel.h
+1
-0
No files found.
src/backends/julia/juliavariablemodel.cpp
View file @
22e1f386
...
...
@@ -32,6 +32,7 @@
using
namespace
Cantor
;
const
QRegularExpression
JuliaVariableModel
::
typeVariableInfo
=
QRegularExpression
(
QLatin1String
(
"
\\
w+
\\
["
));
const
QStringList
JuliaVariableModel
::
internalCantorJuliaVariables
=
{
QLatin1String
(
"__cantor_gr_gks_need_restore__"
)};
JuliaVariableModel
::
JuliaVariableModel
(
JuliaSession
*
session
)
:
DefaultVariableModel
(
session
),
...
...
@@ -70,7 +71,7 @@ void JuliaVariableModel::update()
const
QString
&
name
=
variables
[
i
];
QString
value
=
values
[
i
];
if
(
value
!=
JuliaVariableManagementExtension
::
REMOVED_VARIABLE_MARKER
)
if
(
!
internalCantorJuliaVariables
.
contains
(
name
)
&&
value
!=
JuliaVariableManagementExtension
::
REMOVED_VARIABLE_MARKER
)
{
// Register variable
// We use replace here, because julia return data type for some variables, and we need
...
...
src/backends/julia/juliavariablemodel.h
View file @
22e1f386
...
...
@@ -41,6 +41,7 @@ class JuliaVariableModel : public Cantor::DefaultVariableModel
private:
static
const
QRegularExpression
typeVariableInfo
;
static
const
QStringList
internalCantorJuliaVariables
;
private:
QDBusInterface
*
m_interface
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment