mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Fix macos compilation
This commit is contained in:
parent
9141c8f8cc
commit
33841a93e2
@ -163,14 +163,8 @@ void MonitorListModel::loadMonitors()
|
|||||||
if (screen->geometry().width() == 0 || screen->geometry().height() == 0)
|
if (screen->geometry().width() == 0 || screen->geometry().height() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QRect availableVirtualGeometry(
|
|
||||||
screen->geometry().x() + offsetX,
|
|
||||||
screen->geometry().y() + offsetY,
|
|
||||||
screen->geometry().width(),
|
|
||||||
screen->geometry().height());
|
|
||||||
|
|
||||||
beginInsertRows(index, m_monitorList.size(), m_monitorList.size());
|
beginInsertRows(index, m_monitorList.size(), m_monitorList.size());
|
||||||
m_monitorList.append(Monitor { i, availableVirtualGeometry, screen });
|
m_monitorList.append(Monitor { i, screen->geometry() });
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user