mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 07:06:43 +00:00
Fix the last warning about deprecated Qt functions
This commit is contained in:
parent
47a13f1ed2
commit
78450312bf
1 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,10 @@
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||||
|
#include <QScreen>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../../model/doc/document.hpp"
|
#include "../../model/doc/document.hpp"
|
||||||
#include "../../model/prefs/state.hpp"
|
#include "../../model/prefs/state.hpp"
|
||||||
#include "../../model/prefs/shortcut.hpp"
|
#include "../../model/prefs/shortcut.hpp"
|
||||||
|
@ -1050,7 +1054,7 @@ void CSVDoc::View::updateWidth(bool isGrowLimit, int minSubViewWidth)
|
||||||
if (isGrowLimit)
|
if (isGrowLimit)
|
||||||
rect = dw->screenGeometry(this);
|
rect = dw->screenGeometry(this);
|
||||||
else
|
else
|
||||||
rect = dw->screenGeometry(dw->screen(dw->screenNumber(this)));
|
rect = QGuiApplication::screens().at(dw->screenNumber(this))->geometry();
|
||||||
|
|
||||||
if (!mScrollbarOnly && mScroll && mSubViews.size() > 1)
|
if (!mScrollbarOnly && mScroll && mSubViews.size() > 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue