mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Use QScreen instead of QDesktopWidget::screen
This commit is contained in:
committed by
Mat Sutcliffe
parent
c82ff139fe
commit
338d4d0cdb
@@ -21,6 +21,7 @@
|
||||
#include <QLayoutItem>
|
||||
#include <QMenu>
|
||||
#include <QScopedPointer>
|
||||
#include <QScreen>
|
||||
#include <QSettings>
|
||||
#include <QSizePolicy>
|
||||
#include <QStatusBar>
|
||||
@@ -616,6 +617,6 @@ namespace BlackGui
|
||||
{
|
||||
// center on screen when floating
|
||||
if (!this->isFloating()) { return; }
|
||||
this->move(QApplication::desktop()->screen()->rect().center() - this->rect().center());
|
||||
this->move(sGui->currentScreen()->geometry().center() - this->rect().center());
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user