VirtualBox

Changeset 23263 in vbox for trunk


Ignore:
Timestamp:
Sep 23, 2009 3:14:12 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: seems this calculation is different on the Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSystem.cpp

    r23262 r23263  
    429429    QAbstractItemView *iv = qobject_cast <QAbstractItemView*> (mTwBootOrder);
    430430
     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 */
    431441    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);
    434444
    435445    /* Update the layout system */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette