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
4598452f
Commit
4598452f
authored
2 years ago
by
Mikhail Svechnikov
Browse files
Options
Downloads
Patches
Plain Diff
DataPropertyWidget: change units in real data
parent
e8b608ec
No related branches found
No related tags found
1 merge request
!978
GUI: plotting widgets migration finished
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/PlotUtil/DataPropertyWidget.cpp
+15
-10
15 additions, 10 deletions
GUI/View/PlotUtil/DataPropertyWidget.cpp
with
15 additions
and
10 deletions
GUI/View/PlotUtil/DataPropertyWidget.cpp
+
15
−
10
View file @
4598452f
...
...
@@ -13,6 +13,8 @@
// ************************************************************************************************
#include
"GUI/View/PlotUtil/DataPropertyWidget.h"
#include
"GUI/Model/Data/SessionData.h"
#include
"GUI/Model/Project/ProjectDocument.h"
#include
"GUI/Model/Data/DataItem.h"
#include
<QFormLayout>
...
...
@@ -39,21 +41,24 @@ void DataPropertyWidget::updateItemCoords(DataItem* item)
// TODO : https://jugit.fz-juelich.de/mlz/bornagain/-/issues/320
// Also change units for real item with linked instrument
if
(
!
item
||
!
jobItem
()
)
if
(
!
item
)
return
;
// InstrumentItem* instrument;
// if(jobItem())
// instrument = jobItem()->instrumentItem();
// else if(realItem())
// instrument = gSessionData->instrumentLibrary.collectedItems()
// ->findInstrumentById(realItem()->instrumentId());
// if(instrument) {
InstrumentItem
*
instrument
=
nullptr
;
if
(
jobItem
())
instrument
=
jobItem
()
->
instrumentItem
();
else
if
(
realItem
())
{
instrument
=
gSessionData
->
projectDocument
.
value
()
->
collectedItems
()
->
findInstrumentById
(
realItem
()
->
instrumentId
());
}
else
ASSERT
(
0
)
if
(
instrument
)
{
item
->
blockSignals
(
true
);
item
->
updateCoords
(
jobItem
()
->
instrument
Item
()
);
item
->
updateCoords
(
instrument
);
item
->
blockSignals
(
false
);
emit
item
->
axesUnitsReplotRequested
();
//
}
}
}
void
DataPropertyWidget
::
updateUIValues
()
...
...
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