mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 04:09:42 +00:00
Merge pull request #2643 from akortunov/master
[Regression] Fix build on Qt4
This commit is contained in:
commit
c308498621
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue