diff options
author | Arno <arno@disconnect.de> | 2022-04-16 02:20:43 +0200 |
---|---|---|
committer | Arno <arno@d-tor.org> | 2022-04-16 05:05:19 +0200 |
commit | a354d3cfc491f34107d712de4f4216f1e4f35098 (patch) | |
tree | 116085717f4cdefb41f926e12ed225c05327cd3e /viewer.cpp | |
parent | 980f94e493c349c6c86f1b3d05753ce3cfba38d8 (diff) | |
download | ShemovCleaner-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.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); |