Drop support of Qt 6.5

PR #22599.
This commit is contained in:
Vladimir Golovnev 2025-04-27 16:21:20 +03:00 committed by GitHub
parent 45babc336d
commit 33aaa867b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 10 additions and 25 deletions

View file

@ -1642,11 +1642,7 @@ void SessionImpl::endStartup(ResumeSessionContext *context)
auto wakeupCheckTimer = new QTimer(this);
connect(wakeupCheckTimer, &QTimer::timeout, this, [this]
{
#if (QT_VERSION >= QT_VERSION_CHECK(6, 6, 0))
const bool hasSystemSlept = m_wakeupCheckTimestamp.durationElapsed() > 100s;
#else
const bool hasSystemSlept = m_wakeupCheckTimestamp.elapsed() > std::chrono::milliseconds(100s).count();
#endif
if (hasSystemSlept)
{
LogMsg(tr("System wake-up event detected. Re-announcing to all the trackers..."));