diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-03-16 18:34:29 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:04:08 +0300 |
commit | 82aa9ce87cd81d07e8948aa86416dba9e175a777 (patch) | |
tree | 334d8134422941fe197934e5f9856402670a091e /qt/mainwindow.cpp | |
parent | 90be3eb23e9bd71203b8b28410b1d23c19016c40 (diff) |
Added getting primary screen from Qt
Diffstat (limited to 'qt/mainwindow.cpp')
-rw-r--r-- | qt/mainwindow.cpp | 2 |
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(); |