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
c02d21e5
Commit
c02d21e5
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rename -> StaticGroupBox
parent
08af3714
No related branches found
Branches containing commit
No related tags found
1 merge request
!2065
+ class CollapsibleGroupBox; use it where possible
Pipeline
#117682
passed
1 year ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/View/Instrument/DetectorEditor.cpp
+3
-3
3 additions, 3 deletions
GUI/View/Instrument/DetectorEditor.cpp
GUI/View/Widget/GroupBoxes.cpp
+2
-2
2 additions, 2 deletions
GUI/View/Widget/GroupBoxes.cpp
GUI/View/Widget/GroupBoxes.h
+2
-2
2 additions, 2 deletions
GUI/View/Widget/GroupBoxes.h
with
7 additions
and
7 deletions
GUI/View/Instrument/DetectorEditor.cpp
+
3
−
3
View file @
c02d21e5
...
@@ -80,7 +80,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
...
@@ -80,7 +80,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
::
createSpinBox
(
xAxisFormLayout
,
detectorItem
->
u0
(),
this
);
::
createSpinBox
(
xAxisFormLayout
,
detectorItem
->
u0
(),
this
);
auto
*
xAxisGroupBox
=
new
Heinz
GroupBox
(
"X axis"
,
this
);
auto
*
xAxisGroupBox
=
new
Static
GroupBox
(
"X axis"
,
this
);
xAxisGroupBox
->
body
()
->
setLayout
(
xAxisFormLayout
);
xAxisGroupBox
->
body
()
->
setLayout
(
xAxisFormLayout
);
xyrow
->
addWidget
(
xAxisGroupBox
);
xyrow
->
addWidget
(
xAxisGroupBox
);
...
@@ -106,7 +106,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
...
@@ -106,7 +106,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
::
createSpinBox
(
yAxisFormLayout
,
detectorItem
->
v0
(),
this
);
::
createSpinBox
(
yAxisFormLayout
,
detectorItem
->
v0
(),
this
);
auto
*
yAxisGroupBox
=
new
Heinz
GroupBox
(
"Y axis"
,
this
);
auto
*
yAxisGroupBox
=
new
Static
GroupBox
(
"Y axis"
,
this
);
yAxisGroupBox
->
body
()
->
setLayout
(
yAxisFormLayout
);
yAxisGroupBox
->
body
()
->
setLayout
(
yAxisFormLayout
);
xyrow
->
addWidget
(
yAxisGroupBox
);
xyrow
->
addWidget
(
yAxisGroupBox
);
...
@@ -115,7 +115,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
...
@@ -115,7 +115,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
auto
resolutionLayout
=
new
QFormLayout
;
auto
resolutionLayout
=
new
QFormLayout
;
resolutionLayout
->
setFieldGrowthPolicy
(
QFormLayout
::
FieldsStayAtSizeHint
);
resolutionLayout
->
setFieldGrowthPolicy
(
QFormLayout
::
FieldsStayAtSizeHint
);
auto
*
resolutionForm
=
new
Heinz
GroupBox
(
"Resolution function"
,
this
);
auto
*
resolutionForm
=
new
Static
GroupBox
(
"Resolution function"
,
this
);
resolutionForm
->
body
()
->
setLayout
(
resolutionLayout
);
resolutionForm
->
body
()
->
setLayout
(
resolutionLayout
);
auto
updateResolutionForm
=
[
parent
=
this
,
layout
=
resolutionLayout
,
auto
updateResolutionForm
=
[
parent
=
this
,
layout
=
resolutionLayout
,
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Widget/GroupBoxes.cpp
+
2
−
2
View file @
c02d21e5
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
#include
<QVariant>
#include
<QVariant>
// ************************************************************************************************
// ************************************************************************************************
// class
Heinz
GroupBox
// class
Static
GroupBox
// ************************************************************************************************
// ************************************************************************************************
Heinz
GroupBox
::
Heinz
GroupBox
(
const
QString
&
title
,
QWidget
*
parent
)
Static
GroupBox
::
Static
GroupBox
(
const
QString
&
title
,
QWidget
*
parent
)
:
QWidget
(
parent
)
:
QWidget
(
parent
)
{
{
auto
*
label
=
new
QLabel
(
this
);
auto
*
label
=
new
QLabel
(
this
);
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Widget/GroupBoxes.h
+
2
−
2
View file @
c02d21e5
...
@@ -24,9 +24,9 @@ class QToolButton;
...
@@ -24,9 +24,9 @@ class QToolButton;
//! A group box with given title and layout, and some standard styling.
//! A group box with given title and layout, and some standard styling.
class
Heinz
GroupBox
:
public
QWidget
{
class
Static
GroupBox
:
public
QWidget
{
public:
public:
Heinz
GroupBox
(
const
QString
&
title
,
QWidget
*
parent
);
Static
GroupBox
(
const
QString
&
title
,
QWidget
*
parent
);
QWidget
*
body
()
{
return
m_body
;
}
QWidget
*
body
()
{
return
m_body
;
}
private
:
private
:
...
...
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