- Timestamp:
- Sep 23, 2009 3:14:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSystem.cpp
r23262 r23263 429 429 QAbstractItemView *iv = qobject_cast <QAbstractItemView*> (mTwBootOrder); 430 430 431 int h = 2 * mTwBootOrder->frameWidth(); 432 int w = h; 433 #ifdef Q_WS_MAC 434 int left, top, right, bottom; 435 mTwBootOrder->getContentsMargins (&left, &top, &right, &bottom); 436 h += top + bottom; 437 w += left + right; 438 #else /* Q_WS_MAC */ 439 w += 4; 440 #endif /* Q_WS_MAC */ 431 441 mTwBootOrder->setFixedSize ( 432 iv->sizeHintForColumn (0) + 2 * mTwBootOrder->frameWidth() + 4,433 iv->sizeHintForRow (0) * mTwBootOrder->topLevelItemCount() + 2 * mTwBootOrder->frameWidth() + 4);442 iv->sizeHintForColumn (0) + w, 443 iv->sizeHintForRow (0) * mTwBootOrder->topLevelItemCount() + h); 434 444 435 445 /* Update the layout system */
Note:
See TracChangeset
for help on using the changeset viewer.