mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add a preference to turn on ICD warnings
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
f9f1630d5c
commit
920aa613c9
7 changed files with 33 additions and 0 deletions
|
|
@ -423,6 +423,11 @@ bool TechnicalDetailsSettings::showAverageDepth() const
|
|||
return prefs.show_average_depth;
|
||||
}
|
||||
|
||||
bool TechnicalDetailsSettings::showIcd() const
|
||||
{
|
||||
return prefs.show_icd;
|
||||
}
|
||||
|
||||
bool TechnicalDetailsSettings::mod() const
|
||||
{
|
||||
return prefs.mod;
|
||||
|
|
@ -718,6 +723,17 @@ void TechnicalDetailsSettings::setShowAverageDepth(bool value)
|
|||
emit showAverageDepthChanged(value);
|
||||
}
|
||||
|
||||
void TechnicalDetailsSettings::setShowIcd(bool value)
|
||||
{
|
||||
if (value == prefs.show_icd)
|
||||
return;
|
||||
QSettings s;
|
||||
s.beginGroup(group);
|
||||
s.setValue("show_icd", value);
|
||||
prefs.show_icd = value;
|
||||
emit showIcdChanged(value);
|
||||
}
|
||||
|
||||
FacebookSettings::FacebookSettings(QObject *parent) :
|
||||
QObject(parent),
|
||||
group(QStringLiteral("WebApps")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue