Changeset 45163 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 25, 2013 11:42:38 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.cpp
r45162 r45163 37 37 void QIDialog::showEvent(QShowEvent * /* pEvent */) 38 38 { 39 /* Two thinks to do for fixed size dialogs on MacOS X:40 * 1. Make sure the layout is polished and have the right size41 * 2. Disable that _unnecessary_ size grip (Bug in Qt?) */42 QSizePolicy policy = sizePolicy();43 if ((policy.horizontalPolicy() == QSizePolicy::Fixed &&44 policy.verticalPolicy() == QSizePolicy::Fixed) ||45 (windowFlags() & Qt::Sheet) == Qt::Sheet)46 {47 adjustSize();48 setFixedSize(size());49 #ifdef Q_WS_MAC50 ::darwinSetShowsResizeIndicator (this, false);51 #endif /* Q_WS_MAC */52 }53 54 39 /* Polishing: */ 55 40 if (m_fPolished) 56 41 return; 57 42 m_fPolished = true; 43 44 /* Make sure layout is polished: */ 45 adjustSize(); 46 #ifdef Q_WS_MAC 47 /* And dialog have fixed size: */ 48 setFixedSize(size()); 49 #endif /* Q_WS_MAC */ 58 50 59 51 /* Explicit centering according to our parent: */
Note:
See TracChangeset
for help on using the changeset viewer.