Changeset 50306 in vbox
- Timestamp:
- Feb 3, 2014 11:19:27 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
-
UIDnDHandler.cpp (modified) (8 diffs)
-
UIDnDHandler.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp
r50305 r50306 46 46 47 47 UIDnDHandler::UIDnDHandler(void) 48 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 49 : pMData(NULL) 50 #endif 48 51 { 49 52 } … … 180 183 LogFlowFunc(("\tFormat %d: %s\n", i, 181 184 strFmtGuest.toAscii().constData())); 182 # ifdef RT_OS_WINDOWS185 # ifdef RT_OS_WINDOWS 183 186 /* CF_TEXT */ 184 187 if ( strFmtGuest.contains("text/plain", Qt::CaseInsensitive) … … 193 196 lstFmtNative << "text/uri-list"; 194 197 } 195 # else198 # else 196 199 /* On non-Windows just do a 1:1 mapping. */ 197 200 lstFmtNative << strFmtGuest; 198 # ifdef RT_OS_MACOS201 # ifdef RT_OS_MACOS 199 202 /** @todo Does the mapping apply here? Don't think so ... */ 200 # endif201 # endif203 # endif 204 # endif /* !RT_OS_WINDOWS */ 202 205 } 203 206 204 207 LogFlowFunc(("Number of native formats: %d\n", lstFmtNative.size())); 205 # ifdef DEBUG208 # ifdef DEBUG 206 209 for (int i = 0; i < lstFmtNative.size(); i++) 207 210 LogFlowFunc(("\tFormat %d: %s\n", i, lstFmtNative.at(i).toAscii().constData())); 208 # endif211 # endif 209 212 210 213 if ( defaultAction != KDragAndDropAction_Ignore … … 238 241 pDrag->exec(toQtDnDActions(vecActions), toQtDnDAction(defaultAction)); 239 242 LogFlowFunc(("dropAction=%ld\n", toVBoxDnDAction(dropAction))); 240 # ifdef RT_OS_WINDOWS243 # ifdef RT_OS_WINDOWS 241 244 /* Since the QDrag::exec() call above was blocking on Windows, decide what 242 245 * to do now, e.g. if there was a "drop" action. … … 245 248 * since QDrag had its ownership and deleted it after the (blocking) 246 249 * QDrag::exec() call. */ 247 # endif250 # endif 248 251 rc = VINF_SUCCESS; 249 252 } … … 256 259 rc = VINF_SUCCESS; 257 260 #else 261 NOREF(session); 262 NOREF(screenId); 263 NOREF(pParent); 264 258 265 rc = VERR_NOT_SUPPORTED; 259 266 #endif /* VBOX_WITH_DRAG_AND_DROP_GH */ … … 338 345 void UIDnDHandler::sltDataAvailable(const QString &mimeType) 339 346 { 347 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 340 348 LogFlowFunc(("pMData=0x%p, mimeType=%s\n", 341 349 pMData, mimeType.toAscii().constData())); … … 343 351 if (pMData) 344 352 pMData->setData(mimeType); 353 #endif 345 354 } 346 355 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.h
r50305 r50306 76 76 static Qt::DropActions toQtDnDActions(const QVector<KDragAndDropAction> &vecActions); 77 77 78 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 78 79 UIDnDMimeData *pMData; 79 80 80 friend class UIDnDMimeData; 81 #endif 81 82 }; 82 83
Note:
See TracChangeset
for help on using the changeset viewer.

