Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/documentview.cpp
Show First 20 Lines • Show All 368 Lines • ▼ Show 20 Line(s) | 367 | if (mDrag) { | |||
---|---|---|---|---|---|
369 | mDrag->setPixmap(dragPixmap.pix); | 369 | mDrag->setPixmap(dragPixmap.pix); | ||
370 | mDrag->setHotSpot(dragPixmap.hotSpot); | 370 | mDrag->setHotSpot(dragPixmap.hotSpot); | ||
371 | } | 371 | } | ||
372 | } | 372 | } | ||
373 | 373 | | |||
374 | void executeDrag() | 374 | void executeDrag() | ||
375 | { | 375 | { | ||
376 | if (mDrag) { | 376 | if (mDrag) { | ||
377 | mDrag->exec(); | 377 | mDrag->exec(Qt::MoveAction | Qt::CopyAction | Qt::LinkAction, Qt::CopyAction); | ||
378 | if (mAdapter->imageView()) { | 378 | if (mAdapter->imageView()) { | ||
379 | mAdapter->imageView()->resetDragCursor(); | 379 | mAdapter->imageView()->resetDragCursor(); | ||
380 | } | 380 | } | ||
381 | } | 381 | } | ||
382 | } | 382 | } | ||
383 | 383 | | |||
384 | void initDragThumbnailProvider() { | 384 | void initDragThumbnailProvider() { | ||
385 | mDragThumbnailProvider = new ThumbnailProvider(); | 385 | mDragThumbnailProvider = new ThumbnailProvider(); | ||
▲ Show 20 Lines • Show All 581 Lines • Show Last 20 Lines |