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 :) --- viewer.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'viewer.cpp') diff --git a/viewer.cpp b/viewer.cpp index 3adde7b..8025401 100644 --- a/viewer.cpp +++ b/viewer.cpp @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -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); -- cgit v1.2.3-70-g09d2