From a354d3cfc491f34107d712de4f4216f1e4f35098 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 16 Apr 2022 02:20:43 +0200 Subject: Make it compile with qt6 *BIG FAT WARNING* Took me a while to figure it out, but the database connection only works with MINGW64 instead of MINGW32! With the latter loading the SQL Plugin fails! That said, off to brighter shores :) --- torrentdisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'torrentdisplay.cpp') diff --git a/torrentdisplay.cpp b/torrentdisplay.cpp index d9c094c..d018c31 100644 --- a/torrentdisplay.cpp +++ b/torrentdisplay.cpp @@ -17,7 +17,7 @@ #include "torrentdisplay.h" -TorrentDisplay::TorrentDisplay(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) { +TorrentDisplay::TorrentDisplay(QWidget *parent) : QDialog(parent) { //windows doesn't like it after setting up the GUI setMinimumWidth(600); @@ -119,7 +119,7 @@ void TorrentDisplay::setData(const QList data, const QString &filename } if(it.key() == "creation date"){ uint secs = it.value().toUInt(); - QDateTime when = QDateTime::fromTime_t(secs); + QDateTime when = QDateTime::fromSecsSinceEpoch(secs); mCreated->setText(when.toString(Qt::RFC2822Date)); } if(it.key() == "encoding"){ -- cgit v1.2.3-70-g09d2