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
8ff4ff1f
Commit
8ff4ff1f
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
lambda capture syntax
parent
30ee3395
No related branches found
Branches containing commit
No related tags found
1 merge request
!2003
In GUI, remove option to switch beteen nm and angstrom, degrees and radians.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/View/SampleDesigner/FormLayouter.cpp
+1
-2
1 addition, 2 deletions
GUI/View/SampleDesigner/FormLayouter.cpp
GUI/View/SampleDesigner/FormLayouter.h
+2
-2
2 additions, 2 deletions
GUI/View/SampleDesigner/FormLayouter.h
with
3 additions
and
4 deletions
GUI/View/SampleDesigner/FormLayouter.cpp
+
1
−
2
View file @
8ff4ff1f
...
...
@@ -143,8 +143,7 @@ int FormLayouter::addValue(DoubleProperty& d, function<void(double)> onValueChan
void
FormLayouter
::
insertValue
(
int
row
,
DoubleProperty
&
d
)
{
auto
*
ec
=
m_ec
;
// to allow copy-capture in the following lambda
insertValue
(
row
,
d
,
[
ec
,
&
d
](
double
newValue
)
{
ec
->
setDouble
(
newValue
,
d
);
});
insertValue
(
row
,
d
,
[
ec
=
m_ec
,
&
d
](
double
newValue
)
{
ec
->
setDouble
(
newValue
,
d
);
});
}
void
FormLayouter
::
insertValue
(
int
row
,
DoubleProperty
&
d
,
function
<
void
(
double
)
>
onValueChange
)
...
...
This diff is collapsed.
Click to expand it.
GUI/View/SampleDesigner/FormLayouter.h
+
2
−
2
View file @
8ff4ff1f
...
...
@@ -23,12 +23,12 @@
class
SampleEditorController
;
class
VectorProperty
;
//! Utility class to populate a QFormLayout.
//! Utility class to populate a QFormLayout
with the SampleDesigner
.
//!
//! Helps to add edit controls which operate on Properties (DoubleProperty, VectorProperty,
//! SelectionProperty). Also takes care of bold printed labels, the connection of labels and edit
//! controls (buddies), which is necessary to realize the "label shows unit of value" feature.
//!
C
onnections to
a given
SampleEditorController
are established as well
.
//!
Establishes c
onnections to
the
SampleEditorController.
class
FormLayouter
{
public:
//! Create a layouter which operates on the given parent widget.
...
...
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