From 5b4fced2ba3513fae23e7c23d01ed475bd6c0620 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 13 Jan 2021 04:41:52 -0500 Subject: [PATCH] DolphinQt: Resolve deprecated usages of setTime_t and toTime_t These have been replaced with setSecsSinceEpoch() and toSecsSinceEpoch(), respectively within Qt 5.8, so we can migrate over to them. --- Source/Core/DolphinQt/Settings/AdvancedPane.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp index 9a7da926e2..3e203950c5 100644 --- a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp +++ b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp @@ -221,10 +221,10 @@ void AdvancedPane::ConnectLayout() }); QDateTime initial_date_time; - initial_date_time.setTime_t(SConfig::GetInstance().m_customRTCValue); + initial_date_time.setSecsSinceEpoch(SConfig::GetInstance().m_customRTCValue); m_custom_rtc_datetime->setDateTime(initial_date_time); connect(m_custom_rtc_datetime, &QDateTimeEdit::dateTimeChanged, [this](QDateTime date_time) { - SConfig::GetInstance().m_customRTCValue = date_time.toTime_t(); + SConfig::GetInstance().m_customRTCValue = static_cast(date_time.toSecsSinceEpoch()); Update(); }); }