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
abced399
Commit
abced399
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ResolutionForm rm unused unit
parent
7bf57bac
No related branches found
No related tags found
1 merge request
!2058
GUI instrument editor: detector section made more compact
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/View/Device/ResolutionForm.cpp
+1
-2
1 addition, 2 deletions
GUI/View/Device/ResolutionForm.cpp
GUI/View/Device/ResolutionForm.h
+1
-4
1 addition, 4 deletions
GUI/View/Device/ResolutionForm.h
GUI/View/Instrument/DetectorEditor.cpp
+1
-1
1 addition, 1 deletion
GUI/View/Instrument/DetectorEditor.cpp
with
3 additions
and
7 deletions
GUI/View/Device/ResolutionForm.cpp
+
1
−
2
View file @
abced399
...
...
@@ -20,9 +20,8 @@
#include
"GUI/View/Numeric/DoubleSpinBox.h"
#include
"GUI/View/Numeric/NumWidgetUtil.h"
ResolutionForm
::
ResolutionForm
(
Unit
unit
,
QWidget
*
parent
,
DetectorItem
*
item
)
ResolutionForm
::
ResolutionForm
(
QWidget
*
parent
,
DetectorItem
*
item
)
:
QGroupBox
(
"Resolution function"
,
parent
)
,
m_unit
(
unit
)
,
m_item
(
item
)
{
ASSERT
(
item
);
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Device/ResolutionForm.h
+
1
−
4
View file @
abced399
...
...
@@ -26,8 +26,7 @@ class QFormLayout;
class
ResolutionForm
:
public
QGroupBox
{
Q_OBJECT
public:
enum
Unit
{
Degree
,
Millimeter
};
ResolutionForm
(
Unit
unit
,
QWidget
*
parent
,
DetectorItem
*
item
);
ResolutionForm
(
QWidget
*
parent
,
DetectorItem
*
item
);
signals:
void
dataChanged
();
...
...
@@ -35,8 +34,6 @@ signals:
private:
void
createResolutionWidgets
();
private
:
Unit
m_unit
;
DetectorItem
*
m_item
;
QFormLayout
*
m_formLayout
;
};
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Instrument/DetectorEditor.cpp
+
1
−
1
View file @
abced399
...
...
@@ -125,7 +125,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
grid
->
addWidget
(
yAxisGroupBox
,
1
,
1
);
// -- resolution function
auto
*
resolutionForm
=
new
ResolutionForm
(
ResolutionForm
::
Millimeter
,
this
,
detectorItem
);
auto
*
resolutionForm
=
new
ResolutionForm
(
this
,
detectorItem
);
grid
->
addWidget
(
resolutionForm
,
1
,
2
);
connect
(
resolutionForm
,
&
ResolutionForm
::
dataChanged
,
this
,
&
DetectorEditor
::
dataChanged
);
...
...
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