Changeset 87682 in vbox
- Timestamp:
- Feb 10, 2021 12:40:58 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgGui.cpp
r87679 r87682 26 26 27 27 #include "VBoxDbgGui.h" 28 #include <QDesktopWidget> 28 #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) 29 # include <QScreen> 30 #else 31 # include <QDesktopWidget> 32 #endif 29 33 #include <QApplication> 30 34 … … 225 229 { 226 230 QRect Rct(0, 0, 1600, 1200); 231 #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) 232 QScreen *pScreen = QApplication::screenAt(QPoint(m_x, m_y)); 233 if (pScreen) 234 Rct = pScreen->availableGeometry(); 235 #else 227 236 QDesktopWidget *pDesktop = QApplication::desktop(); 228 237 if (pDesktop) 229 238 Rct = pDesktop->availableGeometry(QPoint(m_x, m_y)); 239 #endif 230 240 m_xDesktop = Rct.x(); 231 241 m_yDesktop = Rct.y();
Note:
See TracChangeset
for help on using the changeset viewer.