VirtualBox

Changeset 87676 in vbox


Ignore:
Timestamp:
Feb 10, 2021 11:47:43 AM (4 years ago)
Author:
vboxsync
Message:

VBoxDbg: bugref:9532: Qt 5.15.2 migration: Replacing QDesktopWidget::availableGeometry with QScreen::availableGeometry since former is obsolete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbgGui.cpp

    r86120 r87676  
    2626
    2727#include "VBoxDbgGui.h"
    28 #include <QDesktopWidget>
    2928#include <QApplication>
     29#include <QScreen>
    3030
    3131
     
    225225{
    226226    QRect Rct(0, 0, 1600, 1200);
    227     QDesktopWidget *pDesktop = QApplication::desktop();
    228     if (pDesktop)
    229         Rct = pDesktop->availableGeometry(QPoint(m_x, m_y));
     227    QScreen *pScreen = QApplication::screenAt(QPoint(m_x, m_y));
     228    if (pScreen)
     229        Rct = pScreen->availableGeometry();
    230230    m_xDesktop = Rct.x();
    231231    m_yDesktop = Rct.y();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette