Changeset 57547 in vbox for trunk/src/VBox
- Timestamp:
- Aug 26, 2015 11:04:28 AM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r57540 r57547 340 340 #endif /* Q_WS_MAC */ 341 341 342 int VBoxGlobal::screenCount() const 343 { 344 /* Redirect call to QDesktopWidget: */ 345 return QApplication::desktop()->screenCount(); 346 } 347 342 348 const QRect VBoxGlobal::screenGeometry(int iHostScreenIndex /* = -1 */) const 343 349 { … … 366 372 } 367 373 368 const QRect 369 { 370 /* Redirect to existing wrapper: */374 const QRect VBoxGlobal::screenGeometry(QWidget *pWidget /* = 0 */) const 375 { 376 /* Redirect call to existing wrapper: */ 371 377 return screenGeometry(QApplication::desktop()->screenNumber(pWidget)); 372 378 } 373 379 374 const QRect 375 { 376 /* Redirect to existing wrapper: */380 const QRect VBoxGlobal::availableGeometry(QWidget *pWidget /* = 0 */) const 381 { 382 /* Redirect call to existing wrapper: */ 377 383 return availableGeometry(QApplication::desktop()->screenNumber(pWidget)); 378 384 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r57540 r57547 142 142 /** @name Host-screen geometry stuff 143 143 * @{ */ 144 /** Returns the number of host-screens currently available on the system. */ 145 int screenCount() const; 146 144 147 /** Returns the geometry of the host-screen with @a iHostScreenIndex. 145 148 * @note The default screen is used if @a iHostScreenIndex is -1. */ 146 const QRect 149 const QRect screenGeometry(int iHostScreenIndex = -1) const; 147 150 /** Returns the available-geometry of the host-screen with @a iHostScreenIndex. 148 151 * @note The default screen is used if @a iHostScreenIndex is -1. */ 149 const QRect 152 const QRect availableGeometry(int iHostScreenIndex = -1) const; 150 153 151 154 /** Returns the geometry of the host-screen which contains @a pWidget. 152 155 * @note The default screen is used if @a pWidget is 0. */ 153 const QRect 156 const QRect screenGeometry(QWidget *pWidget = 0) const; 154 157 /** Returns the available-geometry of the host-screen which contains @a pWidget. 155 158 * @note The default screen is used if @a pWidget is 0. */ 156 const QRect 159 const QRect availableGeometry(QWidget *pWidget = 0) const; 157 160 /** @} */ 158 161
Note:
See TracChangeset
for help on using the changeset viewer.