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
4d88b934
Commit
4d88b934
authored
1 year ago
by
Mikhail Svechnikov
Browse files
Options
Downloads
Patches
Plain Diff
upd units immediately on switch to sld
parent
a51b0497
No related branches found
No related tags found
2 merge requests
!1610
From final 20.1
,
!1608
Immediately update material units (fix to !1607)
Pipeline
#97832
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/SampleDesigner/MaterialInplaceForm.cpp
+2
-0
2 additions, 0 deletions
GUI/View/SampleDesigner/MaterialInplaceForm.cpp
with
2 additions
and
0 deletions
GUI/View/SampleDesigner/MaterialInplaceForm.cpp
+
2
−
0
View file @
4d88b934
...
...
@@ -24,6 +24,7 @@
#include
"GUI/View/Numeric/DoubleSpinBox.h"
#include
"GUI/View/SampleDesigner/LayerEditorUtils.h"
#include
"GUI/View/SampleDesigner/SampleEditorController.h"
#include
"GUI/View/SampleDesigner/SampleForm.h"
#include
"GUI/View/Tool/Globals.h"
#include
"GUI/View/Tool/LayoutUtils.h"
#include
<QGridLayout>
...
...
@@ -74,6 +75,7 @@ void MaterialInplaceForm::selectMaterial()
createWidgets
();
connect
(
itemWithMaterial
()
->
materialItem
(),
&
MaterialItem
::
dataChanged
,
this
,
&
MaterialInplaceForm
::
onMaterialChanged
);
m_ec
->
sampleForm
()
->
updateUnits
();
// necessary on switch from refractive index to SLD
}
else
{
updateValues
();
// necessary, since in the material editor the values could have been
// changed without selecting a different material
...
...
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