diff --git a/sleepyhead/Graphs/MinutesAtPressure.cpp b/sleepyhead/Graphs/MinutesAtPressure.cpp
index 58302b31..18cd1f5f 100644
--- a/sleepyhead/Graphs/MinutesAtPressure.cpp
+++ b/sleepyhead/Graphs/MinutesAtPressure.cpp
@@ -215,6 +215,10 @@ void MinutesAtPressure::paint(QPainter &painter, gGraph &graph, const QRegion &r
if (r < h+4) {
r = double(height+3) / (peak/1200.0);
g = 20.0;
+ if (r < h+4) {
+ r = double(height+3) / (peak/2400.0);
+ g = 40.0;
+ }
}
yp = bot;
for (float f=0.0; f<=peak/60.0+0.01; f+=g) {
diff --git a/sleepyhead/SleepLib/profiles.h b/sleepyhead/SleepLib/profiles.h
index b365a753..edc83631 100644
--- a/sleepyhead/SleepLib/profiles.h
+++ b/sleepyhead/SleepLib/profiles.h
@@ -304,6 +304,7 @@ const QString STR_CS_AHIReset = "AHIReset";
const QString STR_CS_ClockDrift = "ClockDrift";
const QString STR_CS_LeakRedline = "LeakRedline";
const QString STR_CS_ShowLeakRedline = "ShowLeakRedline";
+const QString STR_CS_AllowEventRenaming = "AllowEventRenaming";
const QString STR_CS_CalculateUnintentionalLeaks = "CalculateUnintentionalLeaks";
const QString STR_CS_4cmH2OLeaks = "Custom4cmH2OLeaks";
@@ -574,6 +575,8 @@ class CPAPSettings : public ProfileSettings
initPref(STR_CS_4cmH2OLeaks, 20.167);
initPref(STR_CS_20cmH2OLeaks, 48.333);
+ initPref(STR_CS_AllowEventRenaming, false);
+
initPref(STR_CS_ClockDrift, (int)0);
m_clock_drift = getPref(STR_CS_ClockDrift).toInt();
}
@@ -606,6 +609,7 @@ class CPAPSettings : public ProfileSettings
bool resyncFromUserFlagging() const { return getPref(STR_CS_ResyncFromUserFlagging).toBool(); }
bool autoImport() const { return getPref(STR_CS_AutoImport).toBool(); }
bool brickWarning() const { return getPref(STR_CS_BrickWarning).toBool(); }
+ bool allowEventRenaming() const { return getPref(STR_CS_AllowEventRenaming).toBool(); }
bool calculateUnintentionalLeaks() const { return getPref(STR_CS_CalculateUnintentionalLeaks).toBool(); }
double custom4cmH2OLeaks() const { return getPref(STR_CS_4cmH2OLeaks).toDouble(); }
@@ -643,6 +647,7 @@ class CPAPSettings : public ProfileSettings
void setResyncFromUserFlagging(bool b) { setPref(STR_CS_ResyncFromUserFlagging, b); }
void setAutoImport(bool b) { setPref(STR_CS_AutoImport, b); }
void setBrickWarning(bool b) { setPref(STR_CS_BrickWarning, b); }
+ void setAllowEventRenaming(bool b) { setPref(STR_CS_AllowEventRenaming, b); }
void setCalculateUnintentionalLeaks(bool b) { setPref(STR_CS_CalculateUnintentionalLeaks, b); }
void setCustom4cmH2OLeaks(double val) { setPref(STR_CS_4cmH2OLeaks, val); }
diff --git a/sleepyhead/preferencesdialog.ui b/sleepyhead/preferencesdialog.ui
index 24496c9b..5df0c2ed 100644
--- a/sleepyhead/preferencesdialog.ui
+++ b/sleepyhead/preferencesdialog.ui
@@ -9,8 +9,8 @@
0
0
- 826
- 600
+ 845
+ 656
@@ -1244,6 +1244,13 @@ Defaults to 60 minutes.. Highly recommend it's left at this value.
+ -
+
+
+ Allow Event Renaming
+
+
+