Commit 3cb2fc77 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15. Constructor is deprecated

parent e003a4e5
...@@ -718,8 +718,8 @@ void KfindTabWidget::setQuery(KQuery *query) ...@@ -718,8 +718,8 @@ void KfindTabWidget::setQuery(KQuery *query)
const QDate &to = toDate->date(); const QDate &to = toDate->date();
// do not generate negative numbers .. find doesn't handle that // do not generate negative numbers .. find doesn't handle that
time_t time1 = epoch.secsTo(QDateTime(from)); time_t time1 = epoch.secsTo(QDateTime(from.startOfDay()));
time_t time2 = epoch.secsTo(QDateTime(to.addDays(1))) - 1; // Include the last day time_t time2 = epoch.secsTo(QDateTime(to.addDays(1).startOfDay())) - 1; // Include the last day
query->setTimeRange(time1, time2); query->setTimeRange(time1, time2);
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment