VirtualBox

Ignore:
Timestamp:
Feb 3, 2009 10:25:12 AM (16 years ago)
Author:
vboxsync
Message:

VBoxUtils.h: mac burn fix.

File:
1 edited

Legend:

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

    r16469 r16479  
    152152 * @param   aWidget   Pointer to the QWidget
    153153 */
    154 inline HIViewRef darwinToHIViewRef (QWidget *aWidget)
     154DECLINLINE(HIViewRef) darwinToHIViewRef (QWidget *aWidget)
    155155{
    156156    return HIViewRef(aWidget->winId());
     
    163163 * @param   aViewRef  Reference to the HIView
    164164 */
    165 inline WindowRef darwinToWindowRef (HIViewRef aViewRef)
     165DECLINLINE(WindowRef) darwinToWindowRef (HIViewRef aViewRef)
    166166{
    167167    return reinterpret_cast<WindowRef> (HIViewGetWindow(aViewRef));
     
    174174 * @param   aWidget   Pointer to the QWidget
    175175 */
    176 inline WindowRef darwinToWindowRef (QWidget *aWidget)
     176DECLINLINE(WindowRef) darwinToWindowRef (QWidget *aWidget)
    177177{
    178178    return ::darwinToWindowRef (::darwinToHIViewRef (aWidget));
     
    185185 * @param   aWidget      Pointer to the QWidget
    186186 */
    187 inline CGContextRef darwinToCGContextRef (QWidget *aWidget)
     187DECLINLINE(CGContextRef) darwinToCGContextRef (QWidget *aWidget)
    188188{
    189189    return static_cast<CGContext *> (aWidget->macCGHandle());
     
    196196 * @param   aRect  the QRect to convert
    197197 */
    198 inline HIRect darwinToHIRect (const QRect &aRect)
     198DECLINLINE(HIRect) darwinToHIRect (const QRect &aRect)
    199199{
    200200    return CGRectMake (aRect.x(), aRect.y(), aRect.width(), aRect.height());
     
    216216void darwinDisableIconsInMenus (void);
    217217
    218 #ifndef QT_MAC_USE_COCOA
     218#ifdef QT_MAC_USE_COCOA
    219219/** @todo Carbon -> Cocoa  */
    220220#else  /* !QT_MAC_USE_COCOA */
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