summaryrefslogtreecommitdiffstats
path: root/src/designer/src/designer
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-18 12:00:57 +0200
committerLars Knoll <lars.knoll@qt.io>2020-05-18 21:05:18 +0200
commit431648d8073c96ec6af61bc8fab45bbe6b3cd07c (patch)
treef3725d3529febe24b99eea9b95c87f19b44fac23 /src/designer/src/designer
parent75f2945476a80e33f7ec29d42f04244467b04e1e (diff)
Fix compilation after changes to QDesktopWidget
Change-Id: I5cadb048d4f250c9ea049788347a23cb864dc0ac Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/designer/src/designer')
-rw-r--r--src/designer/src/designer/qdesigner_actions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/designer/src/designer/qdesigner_actions.cpp b/src/designer/src/designer/qdesigner_actions.cpp
index 37f87cf20..658d25bcd 100644
--- a/src/designer/src/designer/qdesigner_actions.cpp
+++ b/src/designer/src/designer/qdesigner_actions.cpp
@@ -75,6 +75,7 @@
#include <QtGui/qicon.h>
#include <QtGui/qimage.h>
#include <QtGui/qpixmap.h>
+#include <QtGui/qscreen.h>
#if defined(QT_PRINTSUPPORT_LIB) // Some platforms may not build QtPrintSupport
# include <QtPrintSupport/qtprintsupportglobal.h>
# if QT_CONFIG(printer) && QT_CONFIG(printdialog)
@@ -1138,7 +1139,7 @@ QString QDesignerActions::fixResourceFileBackupPath(QDesignerFormWindowInterface
QRect QDesignerActions::fixDialogRect(const QRect &rect) const
{
QRect frameGeometry;
- const QRect availableGeometry = QApplication::desktop()->availableGeometry(core()->topLevel());
+ const QRect availableGeometry = core()->topLevel()->screen()->geometry();
if (workbench()->mode() == DockedMode) {
frameGeometry = core()->topLevel()->frameGeometry();