VirtualBox

Changeset 55826 in vbox for trunk


Ignore:
Timestamp:
May 12, 2015 12:55:48 PM (10 years ago)
Author:
vboxsync
Message:

Build fix.

File:
1 edited

Legend:

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

    r55821 r55826  
    8989                                       const QMimeData *pMimeData)
    9090{
    91     LogFlowFunc(("enmMode=%RU32, screenID=%RU32, x=%d, y=%d, action=%ld\n", 
     91    LogFlowFunc(("enmMode=%RU32, screenID=%RU32, x=%d, y=%d, action=%ld\n",
    9292                 m_enmMode, screenID, x, y, toVBoxDnDAction(proposedAction)));
    9393
     
    113113                                      const QMimeData *pMimeData)
    114114{
    115     LogFlowFunc(("enmMode=%RU32, screenID=%RU32, x=%d, y=%d, action=%ld\n", 
     115    LogFlowFunc(("enmMode=%RU32, screenID=%RU32, x=%d, y=%d, action=%ld\n",
    116116                 m_enmMode, screenID, x, y, toVBoxDnDAction(proposedAction)));
    117117
     
    135135                                      const QMimeData *pMimeData)
    136136{
    137     LogFlowFunc(("enmMode=%RU32, screenID=%RU32, x=%d, y=%d, action=%ld\n", 
     137    LogFlowFunc(("enmMode=%RU32, screenID=%RU32, x=%d, y=%d, action=%ld\n",
    138138                 m_enmMode, screenID, x, y, toVBoxDnDAction(proposedAction)));
    139139
     
    212212                            Qt::DropAction defAction, Qt::DropActions actions)
    213213{
     214    int rc = VINF_SUCCESS;
     215
     216#ifdef VBOX_WITH_DRAG_AND_DROP_GH
     217
    214218    m_lstFormats = lstFormats;
    215219    m_defAction  = defAction;
     
    218222    LogFlowFunc(("m_defAction=0x%x\n", m_defAction));
    219223    LogFlowFunc(("Number of formats: %d\n", m_lstFormats.size()));
    220 #ifdef DEBUG
     224# ifdef DEBUG
    221225    for (int i = 0; i < m_lstFormats.size(); i++)
    222226        LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toAscii().constData()));
    223 #endif
    224 
    225     int rc = VINF_SUCCESS;
    226 
    227 #ifdef RT_OS_WINDOWS
     227# endif
     228
     229# ifdef RT_OS_WINDOWS
    228230
    229231    UIDnDDropSource *pDropSource = new UIDnDDropSource(m_pParent);
     
    255257        pDataObject->Release();
    256258
    257 #else /* !RT_OS_WINDOWS */
     259# else /* !RT_OS_WINDOWS */
    258260
    259261    QDrag *pDrag = new QDrag(m_pParent);
     
    287289    /* pDrag will be cleaned up by Qt automatically. */
    288290
    289 #endif /* !RT_OS_WINDOWS */
     291# endif /* !RT_OS_WINDOWS */
     292
     293#else /* VBOX_WITH_DRAG_AND_DROP_GH */
     294
     295    rc = VERR_NOT_SUPPORTED;
     296
     297#endif
    290298
    291299    LogFlowFuncLeaveRC(rc);
     
    297305    int rc;
    298306#ifdef VBOX_WITH_DRAG_AND_DROP_GH
    299  
     307
    300308    LogFlowFunc(("enmMode=%RU32, m_fIsPending=%RTbool, screenID=%RU32\n", m_enmMode, m_fIsPending, screenID));
    301309
     
    379387    {
    380388        rc = dragStart(lstFmtNative,
    381                        toQtDnDAction(defaultAction), toQtDnDActions(vecActions));         
     389                       toQtDnDAction(defaultAction), toQtDnDActions(vecActions));
    382390    }
    383391    else /* No format data from the guest arrived yet. */
     
    433441                                            m_pParent);
    434442
    435         LogFlowFunc(("fCanceled=%RTbool, fCompleted=%RTbool, isOk=%RTbool, hrc=%Rhrc\n", 
     443        LogFlowFunc(("fCanceled=%RTbool, fCompleted=%RTbool, isOk=%RTbool, hrc=%Rhrc\n",
    436444                     progress.GetCanceled(), progress.GetCompleted(), progress.isOk(), progress.GetResultCode()));
    437445
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