- Timestamp:
- Nov 13, 2017 12:07:22 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r69500 r69671 2596 2596 while (0); 2597 2597 2598 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 2599 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 2600 gpDesktop->availableGeometry(); 2601 2598 2602 /* Use geometry (loaded or default): */ 2599 QRect geometry = fOk ? QRect(iX, iY, iW, iH) : QRect( 0, 0, 770, 550);2603 QRect geometry = fOk ? QRect(iX, iY, iW, iH) : QRect(QPoint(0, 0), availableGeometry.size() * .50 /* % */); 2600 2604 2601 2605 /* Take hint-widget into account: */ 2602 2606 if (pWidget) 2603 2607 geometry.setSize(geometry.size().expandedTo(pWidget->minimumSizeHint())); 2604 2605 /* Get available-geometry [of screen with point (iX, iY) if possible]: */2606 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) :2607 gpDesktop->availableGeometry();2608 2608 2609 2609 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */
Note:
See TracChangeset
for help on using the changeset viewer.