mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06: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:
@ -221,10 +221,10 @@ void AdvancedPane::ConnectLayout()
|
|||||||
});
|
});
|
||||||
|
|
||||||
QDateTime initial_date_time;
|
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);
|
m_custom_rtc_datetime->setDateTime(initial_date_time);
|
||||||
connect(m_custom_rtc_datetime, &QDateTimeEdit::dateTimeChanged, [this](QDateTime 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();
|
Update();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user