Skip to content

Commit aeacf05

Browse files
committed
Fix deprecated QDateTime(QDate) since Qt 5.14+
1 parent 256b91e commit aeacf05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/optionsmodel.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ QDate OptionsModel::getLimitTxnDate()
304304

305305
int64_t OptionsModel::getLimitTxnDateTime()
306306
{
307+
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
307308
QDateTime limitTxnDateTime(limitTxnDate);
309+
#else
310+
QDateTime limitTxnDateTime = limitTxnDate.startofDay();
311+
#endif
308312

309313
return limitTxnDateTime.toMSecsSinceEpoch() / 1000;
310314
}

0 commit comments

Comments
 (0)