fixed issue on drag and drop

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent 24e4a6d710
commit 278fa7da07
  1. 5
      src/gui/UBDocumentThumbnailWidget.cpp

@ -33,6 +33,7 @@ UBDocumentThumbnailWidget::UBDocumentThumbnailWidget(QWidget* parent)
, mDragEnabled(true) , mDragEnabled(true)
, mScrollMagnitude(0) , mScrollMagnitude(0)
{ {
bCanDrag = false;
mScrollTimer = new QTimer(this); mScrollTimer = new QTimer(this);
connect(mScrollTimer, SIGNAL(timeout()), this, SLOT(autoScroll())); connect(mScrollTimer, SIGNAL(timeout()), this, SLOT(autoScroll()));
} }
@ -250,7 +251,7 @@ void UBDocumentThumbnailWidget::dropEvent(QDropEvent *event)
if (sourceItem.sceneIndex() >= targetIndex) if (sourceItem.sceneIndex() >= targetIndex)
actualSourceIndex += sourceIndexOffset; actualSourceIndex += sourceIndexOffset;
event->acceptProposedAction(); //event->acceptProposedAction();
if (sourceItem.sceneIndex() < targetIndex) if (sourceItem.sceneIndex() < targetIndex)
{ {
if (actualSourceIndex != actualTargetIndex - 1) if (actualSourceIndex != actualTargetIndex - 1)
@ -265,7 +266,7 @@ void UBDocumentThumbnailWidget::dropEvent(QDropEvent *event)
} }
} }
} }
UBThumbnailWidget::dropEvent(event);
} }
void UBDocumentThumbnailWidget::deleteDropCaret() void UBDocumentThumbnailWidget::deleteDropCaret()

Loading…
Cancel
Save