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
c6510085
Commit
c6510085
authored
3 years ago
by
Matthias Puchner
Browse files
Options
Downloads
Patches
Plain Diff
use InstrumentsEditController in RealDataPropertiesWidget
parent
805bf48d
No related branches found
No related tags found
1 merge request
!613
Remove SessionItem signaling from instruments
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/Import/RealDataPropertiesWidget.cpp
+6
-3
6 additions, 3 deletions
GUI/View/Import/RealDataPropertiesWidget.cpp
with
6 additions
and
3 deletions
GUI/View/Import/RealDataPropertiesWidget.cpp
+
6
−
3
View file @
c6510085
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include
"GUI/Model/Item/InstrumentItems.h"
#include
"GUI/Model/Item/InstrumentItems.h"
#include
"GUI/Model/Item/RealDataItem.h"
#include
"GUI/Model/Item/RealDataItem.h"
#include
"GUI/Model/Model/InstrumentModel.h"
#include
"GUI/Model/Model/InstrumentModel.h"
#include
"GUI/Model/Project/InstrumentsEditController.h"
#include
"GUI/Model/Project/LinkInstrumentManager.h"
#include
"GUI/Model/Project/LinkInstrumentManager.h"
#include
"GUI/Model/Project/ProjectDocument.h"
#include
"GUI/Model/Project/ProjectDocument.h"
#include
"GUI/View/Global/Globals.h"
#include
"GUI/View/Global/Globals.h"
...
@@ -48,10 +49,12 @@ RealDataPropertiesWidget::RealDataPropertiesWidget(QWidget* parent, ProjectDocum
...
@@ -48,10 +49,12 @@ RealDataPropertiesWidget::RealDataPropertiesWidget(QWidget* parent, ProjectDocum
static_cast
<
void
(
QComboBox
::*
)(
int
)
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
static_cast
<
void
(
QComboBox
::*
)(
int
)
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
RealDataPropertiesWidget
::
onInstrumentComboIndexChanged
);
&
RealDataPropertiesWidget
::
onInstrumentComboIndexChanged
);
connect
(
m_document
->
instrumentModel
(),
&
InstrumentModel
::
instrumentAddedOrRemoved
,
this
,
connect
(
m_document
->
instrumentsEditController
(),
&
InstrumentsEditController
::
instrumentAddedOrRemoved
,
this
,
&
RealDataPropertiesWidget
::
updateInstrumentComboEntries
);
&
RealDataPropertiesWidget
::
updateInstrumentComboEntries
);
connect
(
m_document
->
instrumentModel
(),
&
InstrumentModel
::
instrumentChanged
,
this
,
connect
(
m_document
->
instrumentsEditController
(),
&
InstrumentsEditController
::
instrumentNameChanged
,
this
,
&
RealDataPropertiesWidget
::
updateInstrumentComboEntries
);
&
RealDataPropertiesWidget
::
updateInstrumentComboEntries
);
updateInstrumentComboEntries
();
updateInstrumentComboEntries
();
...
@@ -114,7 +117,7 @@ void RealDataPropertiesWidget::onInstrumentComboIndexChanged(int /*index*/)
...
@@ -114,7 +117,7 @@ void RealDataPropertiesWidget::onInstrumentComboIndexChanged(int /*index*/)
void
RealDataPropertiesWidget
::
updateInstrumentComboEntries
()
void
RealDataPropertiesWidget
::
updateInstrumentComboEntries
()
{
{
QString
currentId
=
m_currentDataItem
!=
nullptr
?
m_currentDataItem
->
instrumentId
()
:
""
;
const
QString
currentId
=
m_currentDataItem
!=
nullptr
?
m_currentDataItem
->
instrumentId
()
:
""
;
QSignalBlocker
b
(
m_instrumentCombo
);
QSignalBlocker
b
(
m_instrumentCombo
);
...
...
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