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
a8c4b8db
Commit
a8c4b8db
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm includes; rm unit related fcts
parent
763a570c
No related branches found
No related tags found
1 merge request
!2181
rm many unused fcts, detected with xunused
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/View/Widget/ApplicationSettings.cpp
+0
-12
0 additions, 12 deletions
GUI/View/Widget/ApplicationSettings.cpp
GUI/View/Widget/ApplicationSettings.h
+0
-6
0 additions, 6 deletions
GUI/View/Widget/ApplicationSettings.h
with
0 additions
and
18 deletions
GUI/View/Widget/ApplicationSettings.cpp
+
0
−
12
View file @
a8c4b8db
...
...
@@ -17,7 +17,6 @@
#include
<QApplication>
#include
<QFile>
#include
<QSettings>
#include
<QStandardPaths>
#include
<QStyle>
namespace
{
...
...
@@ -27,7 +26,6 @@ const QString S_STYLE = "UiStyle";
const
QString
S_SIZE
=
"Size"
;
const
QString
S_POS
=
"Pos"
;
const
QString
S_SINGLE_SAMPLE_MODE
=
"SingleSampleMode"
;
const
QString
S_DEFAULT_UNIT_IS_ANGSTROM
=
"DefaultUnitIsAngstrom"
;
}
// namespace
...
...
@@ -68,16 +66,6 @@ void ApplicationSettings::setStyleToUse(Style style)
QSettings
().
setValue
(
S_STYLE
,
static_cast
<
int
>
(
style
));
}
bool
ApplicationSettings
::
defaultUnitIsAngstrom
()
const
{
return
QSettings
().
value
(
S_DEFAULT_UNIT_IS_ANGSTROM
,
false
).
toBool
();
}
void
ApplicationSettings
::
setDefaultUnitIsAngstrom
(
bool
b
)
const
{
QSettings
().
setValue
(
S_DEFAULT_UNIT_IS_ANGSTROM
,
b
);
}
void
ApplicationSettings
::
saveWindowSizeAndPos
(
const
QWidget
*
w
)
{
ASSERT
(
!
w
->
objectName
().
isEmpty
());
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Widget/ApplicationSettings.h
+
0
−
6
View file @
a8c4b8db
...
...
@@ -15,9 +15,6 @@
#ifndef BORNAGAIN_GUI_VIEW_WIDGET_APPLICATIONSETTINGS_H
#define BORNAGAIN_GUI_VIEW_WIDGET_APPLICATIONSETTINGS_H
#include
<QColor>
#include
<QPalette>
#include
<QVariant>
#include
<QWidget>
//! Application wide settings.
...
...
@@ -36,9 +33,6 @@ public:
Style
styleToUse
()
const
;
void
setStyleToUse
(
Style
style
);
bool
defaultUnitIsAngstrom
()
const
;
void
setDefaultUnitIsAngstrom
(
bool
b
)
const
;
void
saveWindowSizeAndPos
(
const
QWidget
*
w
);
void
loadWindowSizeAndPos
(
QWidget
*
w
);
...
...
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