Commit 278fa7da authored by Claudio Valerio's avatar Claudio Valerio

fixed issue on drag and drop

parent 24e4a6d7
......@@ -33,6 +33,7 @@ UBDocumentThumbnailWidget::UBDocumentThumbnailWidget(QWidget* parent)
, mDragEnabled(true)
, mScrollMagnitude(0)
{
bCanDrag = false;
mScrollTimer = new QTimer(this);
connect(mScrollTimer, SIGNAL(timeout()), this, SLOT(autoScroll()));
}
......@@ -250,7 +251,7 @@ void UBDocumentThumbnailWidget::dropEvent(QDropEvent *event)
if (sourceItem.sceneIndex() >= targetIndex)
actualSourceIndex += sourceIndexOffset;
event->acceptProposedAction();
//event->acceptProposedAction();
if (sourceItem.sceneIndex() < targetIndex)
{
if (actualSourceIndex != actualTargetIndex - 1)
......@@ -265,7 +266,7 @@ void UBDocumentThumbnailWidget::dropEvent(QDropEvent *event)
}
}
}
UBThumbnailWidget::dropEvent(event);
}
void UBDocumentThumbnailWidget::deleteDropCaret()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment