Fix deprecated Qt functions

Change the way to get the screen size
Remove Qt::WindowFlags
Change function to process events from mouse wheel
This commit is contained in:
jfmcarreira committed 2021-05-01 01:35:28 +01:00
1 parent 56fc2e45bb
commit 3732810f9e
6 files changed
+17 -10

No files matched your search

+5 -1
View File
@@ -24,6 +24,10 @@
#include "PlotSubWindow.h"
#include <QGuiApplication>
#include <QScreen>
#include <QSize>
#include "qcustomplot.h"
//#include "external/qcustomplot/qcustomplot.h"
@@ -174,7 +178,7 @@ QSize PlotSubWindow::sizeHint() const
}
else
{
maxSize = QApplication::desktop()->availableGeometry().size();
maxSize = QGuiApplication::screens()[0]->availableGeometry().size();
}
return sizeHint( maxSize );
}