VirtualBox

Ignore:
Timestamp:
Mar 31, 2008 10:25:13 AM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Better placement for setLayoutMargin().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h

    r7627 r7643  
    219219#endif // __VBoxUtils_h__
    220220
    221 /* Qt 4.2.0 support function */
    222 inline void setLayoutMargin (QLayout *aLayout, int aMargin)
    223 {
    224 #if QT_VERSION < 0x040300
    225     /* Deprecated since > 4.2 */
    226     aLayout->setMargin (aMargin);
    227 #else
    228     /* New since > 4.2 */
    229     aLayout->setContentsMargins (aMargin, aMargin, aMargin, aMargin);
    230 #endif
    231 }
    232 
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