mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Fix build on Qt4
This commit is contained in:
parent
82308dacbb
commit
089548cdc4
@ -1054,7 +1054,11 @@ void CSVDoc::View::updateWidth(bool isGrowLimit, int minSubViewWidth)
|
||||
if (isGrowLimit)
|
||||
rect = dw->screenGeometry(this);
|
||||
else
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||
rect = QGuiApplication::screens().at(dw->screenNumber(this))->geometry();
|
||||
#else
|
||||
rect = dw->screenGeometry(dw->screen(dw->screenNumber(this)));
|
||||
#endif
|
||||
|
||||
if (!mScrollbarOnly && mScroll && mSubViews.size() > 1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user