VirtualBox

Changeset 50306 in vbox


Ignore:
Timestamp:
Feb 3, 2014 11:19:27 AM (11 years ago)
Author:
vboxsync
Message:

Build fix.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r50305 r50306  
    4646
    4747UIDnDHandler::UIDnDHandler(void)
     48#ifdef VBOX_WITH_DRAG_AND_DROP_GH
     49    : pMData(NULL)
     50#endif
    4851{
    4952}
     
    180183        LogFlowFunc(("\tFormat %d: %s\n", i,
    181184                     strFmtGuest.toAscii().constData()));
    182 #ifdef RT_OS_WINDOWS
     185# ifdef RT_OS_WINDOWS
    183186        /* CF_TEXT */
    184187        if (   strFmtGuest.contains("text/plain", Qt::CaseInsensitive)
     
    193196            lstFmtNative << "text/uri-list";
    194197        }
    195 #else
     198# else
    196199        /* On non-Windows just do a 1:1 mapping. */
    197200        lstFmtNative << strFmtGuest;
    198 # ifdef RT_OS_MACOS
     201#  ifdef RT_OS_MACOS
    199202        /** @todo Does the mapping apply here? Don't think so ... */
    200 # endif
    201 #endif
     203#  endif
     204# endif /* !RT_OS_WINDOWS */
    202205    }
    203206
    204207    LogFlowFunc(("Number of native formats: %d\n", lstFmtNative.size()));
    205 #ifdef DEBUG
     208# ifdef DEBUG
    206209    for (int i = 0; i < lstFmtNative.size(); i++)
    207210        LogFlowFunc(("\tFormat %d: %s\n", i, lstFmtNative.at(i).toAscii().constData()));
    208 #endif
     211# endif
    209212
    210213    if (    defaultAction != KDragAndDropAction_Ignore
     
    238241                 pDrag->exec(toQtDnDActions(vecActions), toQtDnDAction(defaultAction));
    239242            LogFlowFunc(("dropAction=%ld\n", toVBoxDnDAction(dropAction)));
    240 #ifdef RT_OS_WINDOWS
     243# ifdef RT_OS_WINDOWS
    241244            /* Since the QDrag::exec() call above was blocking on Windows, decide what
    242245             * to do now, e.g. if there was a "drop" action.
     
    245248             *       since QDrag had its ownership and deleted it after the (blocking)
    246249             *       QDrag::exec() call. */
    247 #endif
     250# endif
    248251            rc = VINF_SUCCESS;
    249252        }
     
    256259        rc = VINF_SUCCESS;
    257260#else
     261    NOREF(session);
     262    NOREF(screenId);
     263    NOREF(pParent);
     264
    258265    rc = VERR_NOT_SUPPORTED;
    259266#endif /* VBOX_WITH_DRAG_AND_DROP_GH */
     
    338345void UIDnDHandler::sltDataAvailable(const QString &mimeType)
    339346{
     347#ifdef VBOX_WITH_DRAG_AND_DROP_GH
    340348    LogFlowFunc(("pMData=0x%p, mimeType=%s\n",
    341349                 pMData, mimeType.toAscii().constData()));
     
    343351    if (pMData)
    344352        pMData->setData(mimeType);
     353#endif
    345354}
    346355
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.h

    r50305 r50306  
    7676    static Qt::DropActions             toQtDnDActions(const QVector<KDragAndDropAction> &vecActions);
    7777
     78#ifdef VBOX_WITH_DRAG_AND_DROP_GH
    7879    UIDnDMimeData *pMData;
    79 
    8080    friend class UIDnDMimeData;
     81#endif
    8182};
    8283
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