mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 02:06:42 +00:00
Fix build on Qt4
This commit is contained in:
parent
82308dacbb
commit
089548cdc4
1 changed files with 4 additions and 0 deletions
|
@ -1054,7 +1054,11 @@ void CSVDoc::View::updateWidth(bool isGrowLimit, int minSubViewWidth)
|
||||||
if (isGrowLimit)
|
if (isGrowLimit)
|
||||||
rect = dw->screenGeometry(this);
|
rect = dw->screenGeometry(this);
|
||||||
else
|
else
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||||
rect = QGuiApplication::screens().at(dw->screenNumber(this))->geometry();
|
rect = QGuiApplication::screens().at(dw->screenNumber(this))->geometry();
|
||||||
|
#else
|
||||||
|
rect = dw->screenGeometry(dw->screen(dw->screenNumber(this)));
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!mScrollbarOnly && mScroll && mSubViews.size() > 1)
|
if (!mScrollbarOnly && mScroll && mSubViews.size() > 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue