Changeset 372 for trunk/tools/designer/src/components/widgetbox
- Timestamp:
- Dec 2, 2009, 4:30:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/designer/src/components/widgetbox/widgetbox.cpp
r2 r372 180 180 bool acceptEventsFromWidgetBox) 181 181 { 182 #ifndef QT_NO_DRAGANDDROP 182 183 const QDesignerMimeData *mimeData = qobject_cast<const QDesignerMimeData *>(event->mimeData()); 183 184 if (!mimeData) { … … 196 197 mimeData->acceptEvent(event); 197 198 return mimeData; 199 #else 200 return 0; 201 #endif 198 202 } 199 203 200 204 void WidgetBox::dragEnterEvent (QDragEnterEvent * event) 201 205 { 206 #ifndef QT_NO_DRAGANDDROP 202 207 // We accept event originating from the widget box also here, 203 208 // because otherwise Windows will not show the DnD pixmap. 204 209 checkDragEvent(event, true); 210 #endif 205 211 } 206 212 207 213 void WidgetBox::dragMoveEvent(QDragMoveEvent * event) 208 214 { 215 #ifndef QT_NO_DRAGANDDROP 209 216 checkDragEvent(event, true); 217 #endif 210 218 } 211 219 212 220 void WidgetBox::dropEvent(QDropEvent * event) 213 221 { 222 #ifndef QT_NO_DRAGANDDROP 214 223 const QDesignerMimeData *mimeData = checkDragEvent(event, false); 215 224 if (!mimeData) … … 218 227 dropWidgets(mimeData->items(), event->pos()); 219 228 QDesignerMimeData::removeMovedWidgetsFromSourceForm(mimeData->items()); 229 #endif 220 230 } 221 231
Note:
See TracChangeset
for help on using the changeset viewer.