- Timestamp:
- Jul 21, 2008 4:44:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/QIDialog.cpp
r8334 r10787 34 34 void QIDialog::showEvent (QShowEvent * /* aEvent */) 35 35 { 36 #ifdef Q_WS_MAC37 36 /* Two thinks to do for fixed size dialogs on MacOS X: 38 * 1. make sure the layout is polished and have the right size39 * 2. disable that _unnecessary_ size grip (Bug in Qt?) */37 * 1. Make sure the layout is polished and have the right size 38 * 2. Disable that _unnecessary_ size grip (Bug in Qt?) */ 40 39 QSizePolicy policy = sizePolicy(); 41 40 if ((policy.horizontalPolicy() == QSizePolicy::Fixed && … … 44 43 { 45 44 adjustSize(); 45 setFixedSize (sizeHint()); 46 #ifdef Q_WS_MAC 46 47 ChangeWindowAttributes (::darwinToWindowRef (this), kWindowNoAttributes, kWindowResizableAttribute); 48 #endif /* Q_WS_MAC */ 47 49 } 48 #endif /* Q_WS_MAC */49 50 } 50 51
Note:
See TracChangeset
for help on using the changeset viewer.