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
a8066542
Commit
a8066542
authored
1 month ago
by
Mikhail Svechnikov
Browse files
Options
Downloads
Patches
Plain Diff
rm unused remnants
parent
e5db901b
No related branches found
Branches containing commit
No related tags found
1 merge request
!2859
Rm unused remnants from SimulationView
Pipeline
#187398
passed
1 month ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/View/View/SimulationView.cpp
+0
-24
0 additions, 24 deletions
GUI/View/View/SimulationView.cpp
GUI/View/View/SimulationView.h
+0
-5
0 additions, 5 deletions
GUI/View/View/SimulationView.h
with
0 additions
and
29 deletions
GUI/View/View/SimulationView.cpp
+
0
−
24
View file @
a8066542
...
...
@@ -374,30 +374,6 @@ void SimulationView::updateEnabling()
m_current_data_name
->
setEnabled
(
m_use_dataset
->
isChecked
());
}
void
SimulationView
::
updateSelection
(
QComboBox
*
comboBox
,
QStringList
itemList
,
int
currentIndex
,
bool
allowNone
)
{
QSignalBlocker
b
(
comboBox
);
const
QString
previousItem
=
comboBox
->
currentText
();
comboBox
->
clear
();
comboBox
->
setEnabled
(
!
itemList
.
isEmpty
());
if
(
itemList
.
isEmpty
())
{
comboBox
->
addItem
(
"Not yet defined"
);
return
;
}
if
(
allowNone
)
itemList
.
prepend
(
"None"
);
comboBox
->
addItems
(
itemList
);
if
(
currentIndex
>
0
&&
currentIndex
<
itemList
.
count
())
comboBox
->
setCurrentIndex
(
currentIndex
);
else
if
(
itemList
.
contains
(
previousItem
))
comboBox
->
setCurrentIndex
(
itemList
.
indexOf
(
previousItem
));
}
SimulationOptionsItem
*
SimulationView
::
optionsItem
()
const
{
return
gDoc
->
simulationOptionsRW
();
...
...
This diff is collapsed.
Click to expand it.
GUI/View/View/SimulationView.h
+
0
−
5
View file @
a8066542
...
...
@@ -48,11 +48,6 @@ private:
//! Update enabling of elements depending on other elements.
void
updateEnabling
();
//! Updates selection combo with string list while preserving previous selection.
//! If allowNone == true, additional "None" item will be added to the combo.
void
updateSelection
(
QComboBox
*
comboBox
,
QStringList
itemList
,
int
currentIndex
,
bool
allowNone
=
false
);
QLabel
*
m_instrument_label
;
CollapsibleGroupBox
*
m_settings
;
...
...
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