diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-08-23 20:30:46 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-08-25 08:46:32 +0300 |
commit | c6dd32da697e5a8052cbabe8c7605d27c43a8dfb (patch) | |
tree | 53448c618fcb94ee82b9a27cac2d0cd822f1f69c /src/qt/rpcconsole.cpp | |
parent | 1260ecd812e35185898fd555ad3e01d019072bcf (diff) |
qt: Replace obsolete functions of QDesktopWidget
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 19b11ba1cd..8922ab6270 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -28,11 +28,11 @@ #include <wallet/wallet.h> #endif -#include <QDesktopWidget> #include <QKeyEvent> #include <QMenu> #include <QMessageBox> #include <QScrollBar> +#include <QScreen> #include <QSettings> #include <QSignalMapper> #include <QTime> @@ -451,7 +451,7 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty QSettings settings; if (!restoreGeometry(settings.value("RPCConsoleWindowGeometry").toByteArray())) { // Restore failed (perhaps missing setting), center the window - move(QApplication::desktop()->availableGeometry().center() - frameGeometry().center()); + move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center()); } QChar nonbreaking_hyphen(8209); |