VirtualBox

Changeset 87679 in vbox for trunk/src/VBox/Debugger


Ignore:
Timestamp:
Feb 10, 2021 12:11:46 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142721
Message:

Reverting r142718, this API is available since Qt 5.10.

File:
1 edited

Legend:

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

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

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