mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
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.
This commit is contained in:
parent
892154f7ea
commit
5b4fced2ba
@ -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<u32>(date_time.toSecsSinceEpoch());
|
||||
Update();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user