Commit b9f39fe4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15

parent 83a7ed03
......@@ -20,6 +20,7 @@
#include "globalbookmarkmanager.h"
#include <QDateTime>
#include <QLocale>
#include "keditbookmarks_debug.h"
#include "kbookmarkmanager.h"
#include "kbookmarkmodel/model.h"
......@@ -97,9 +98,10 @@ QString GlobalBookmarkManager::makeTimeStr(int b)
{
QDateTime dt;
dt.fromSecsSinceEpoch(b);
QLocale l;
return (dt.daysTo(QDateTime::currentDateTime()) > 31)
? dt.date().toString(Qt::DefaultLocaleLongDate)
: dt.toString(Qt::DefaultLocaleLongDate);
? l.toString(dt.date(), QLocale::LongFormat)
: l.toString(dt, QLocale::LongFormat);
}
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