Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
49e2fb8f
Commit
49e2fb8f
authored
2 years ago
by
Mikhail Svechnikov
Browse files
Options
Downloads
Patches
Plain Diff
MaterialInplaceForm: magnetization UI: fix ref to temp object
parent
4fb25764
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1162
rm DoubleDescriptor from code
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/SampleDesigner/MaterialInplaceForm.cpp
+1
-2
1 addition, 2 deletions
GUI/View/SampleDesigner/MaterialInplaceForm.cpp
with
1 addition
and
2 deletions
GUI/View/SampleDesigner/MaterialInplaceForm.cpp
+
1
−
2
View file @
49e2fb8f
...
@@ -113,11 +113,10 @@ void MaterialInplaceForm::createWidgets()
...
@@ -113,11 +113,10 @@ void MaterialInplaceForm::createWidgets()
}
}
// -- Create UI for magnetization vector
// -- Create UI for magnetization vector
VectorProperty
mag
=
material
->
magnetization
();
const
auto
setNewValue
=
[
this
](
double
value
,
DoubleProperty
&
d
)
{
const
auto
setNewValue
=
[
this
](
double
value
,
DoubleProperty
&
d
)
{
m_ec
->
setMaterialValue
(
m_item
,
value
,
d
);
m_ec
->
setMaterialValue
(
m_item
,
value
,
d
);
};
};
LayerEditorUtils
::
addVectorToGrid
(
m_layout
,
col
,
ma
g
,
setNewValue
,
true
,
false
);
LayerEditorUtils
::
addVectorToGrid
(
m_layout
,
col
,
ma
terial
->
magnetization
()
,
setNewValue
,
true
,
false
);
// -- Create UI for material selection button
// -- Create UI for material selection button
auto
*
btn
=
new
QPushButton
(
"..."
,
this
);
auto
*
btn
=
new
QPushButton
(
"..."
,
this
);
...
...
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