forked from organicmaps/organicmaps
Added getting primary screen from Qt
This commit is contained in:
parent
90be3eb23e
commit
82aa9ce87c
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ MainWindow::MainWindow() : m_locationService(CreateDesktopLocationService(*this)
|
|||
{
|
||||
// Always runs on the first desktop
|
||||
auto const desktop(QApplication::desktop());
|
||||
setGeometry(desktop->screenGeometry(0));
|
||||
setGeometry(desktop->screenGeometry(desktop->primaryScreen()));
|
||||
|
||||
m_pDrawWidget = new DrawWidget(this);
|
||||
QSurfaceFormat format = m_pDrawWidget->requestedFormat();
|
||||
|
|
Loading…
Add table
Reference in a new issue