From 04c085f924118eeeb6fdf681c34c9cb52b2ac67e Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Tue, 21 Jan 2020 15:53:08 -0500 Subject: [PATCH] Add code to use old calls with old Qt versions --- oscar/SleepLib/loader_plugins/prs1_loader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index de9ee806..58d09b87 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -895,7 +895,7 @@ void PRS1Loader::ScanFiles(const QStringList & paths, int sessionid_base, Machin qint64 ignoreBefore = p_profile->session->ignoreOlderSessionsDate().toMSecsSinceEpoch()/1000; #else qint64 ignoreBefore = p_profile->session->ignoreOlderSessionsDate().toSecsSinceEpoch(); -#end +#endif bool ignoreOldSessions = p_profile->session->ignoreOlderSessions(); QSet skipped; @@ -1026,7 +1026,7 @@ void PRS1Loader::ScanFiles(const QStringList & paths, int sessionid_base, Machin qDebug().noquote() << relativePath(path) << "skipping session" << chunk_sid << ":" << QDateTime::fromSecsSinceEpoch(chunk->timestamp).toString() << "older than" << QDateTime::fromSecsSinceEpoch(ignoreBefore).toString(); -#end +#endif skipped += chunk_sid; delete chunk; continue; @@ -7697,7 +7697,7 @@ QList PRS1Import::CoalesceWaveformChunks(QList qint64 ignoreBefore = p_profile->session->ignoreOlderSessionsDate().toMSecsSinceEpoch()/1000; #else qint64 ignoreBefore = p_profile->session->ignoreOlderSessionsDate().toSecsSinceEpoch(); -#end +#endif bool ignoreOldSessions = p_profile->session->ignoreOlderSessions(); for (auto & chunk : coalesced) { @@ -7710,7 +7710,7 @@ QList PRS1Import::CoalesceWaveformChunks(QList qWarning().noquote() << relativePath(chunk->m_path) << "skipping session" << chunk->sessionid << ":" << QDateTime::fromSecsSinceEpoch(chunk->timestamp).toString() << "older than" << QDateTime::fromSecsSinceEpoch(ignoreBefore).toString(); -#end +#endif continue; } coalescedAndFiltered.append(chunk);