summaryrefslogtreecommitdiffstats
path: root/torrentdisplay.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2022-04-16 02:20:43 +0200
committerArno <arno@d-tor.org>2022-04-16 05:05:19 +0200
commita354d3cfc491f34107d712de4f4216f1e4f35098 (patch)
tree116085717f4cdefb41f926e12ed225c05327cd3e /torrentdisplay.cpp
parent980f94e493c349c6c86f1b3d05753ce3cfba38d8 (diff)
downloadShemovCleaner-a354d3cfc491f34107d712de4f4216f1e4f35098.tar.gz
ShemovCleaner-a354d3cfc491f34107d712de4f4216f1e4f35098.tar.bz2
ShemovCleaner-a354d3cfc491f34107d712de4f4216f1e4f35098.zip
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 :)
Diffstat (limited to 'torrentdisplay.cpp')
-rw-r--r--torrentdisplay.cpp4
1 files changed, 2 insertions, 2 deletions
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<QVariant> 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"){