Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-03-16 18:34:29 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:04:08 +0300
commit82aa9ce87cd81d07e8948aa86416dba9e175a777 (patch)
tree334d8134422941fe197934e5f9856402670a091e /qt/mainwindow.cpp
parent90be3eb23e9bd71203b8b28410b1d23c19016c40 (diff)
Added getting primary screen from Qt
Diffstat (limited to 'qt/mainwindow.cpp')
-rw-r--r--qt/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp
index ae616afd53..e08d68bb35 100644
--- a/qt/mainwindow.cpp
+++ b/qt/mainwindow.cpp
@@ -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();