summaryrefslogtreecommitdiffstats
path: root/viewer.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 /viewer.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 'viewer.cpp')
-rw-r--r--viewer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/viewer.cpp b/viewer.cpp
index 3adde7b..8025401 100644
--- a/viewer.cpp
+++ b/viewer.cpp
@@ -1,6 +1,5 @@
#include <QLabel>
#include <QHBoxLayout>
-#include <QDesktopWidget>
#include <QApplication>
#include <QFileInfo>
#include <QMimeDatabase>
@@ -10,10 +9,8 @@
#include "helper.h"
#include "viewer.h"
-Viewer::Viewer(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f), mCurIndex(-1) {
- QDesktopWidget *dw = qApp->desktop();
+Viewer::Viewer(QWidget *parent) : QWidget(parent), mCurIndex(-1) {
mLabel = new QLabel;
- mLabel->setMaximumSize(dw->size() - QSize(20, 20));
QHBoxLayout *mainLayout = new QHBoxLayout;
mainLayout->addWidget(mLabel);
setLayout(mainLayout);