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:
2021-05-29 03:14:15 +01:00
parent 4c6a4aba65
commit 039887f2e6
6 changed files with 17 additions and 10 deletions
+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 );
}