Commit 3c5d10e0 authored by Clément Fauconnier's avatar Clément Fauconnier

disable movePage icons + drag and drop thumbnail sized correctly

parent ae559ac3
...@@ -219,7 +219,7 @@ void UBBoardThumbnailsView::mousePressAndHoldEvent(QPoint pos) ...@@ -219,7 +219,7 @@ void UBBoardThumbnailsView::mousePressAndHoldEvent(QPoint pos)
mDropSource = item; mDropSource = item;
mDropTarget = item; mDropTarget = item;
QPixmap pixmap = item->widget()->grab().scaledToWidth(UBSettings::defaultThumbnailWidth); QPixmap pixmap = item->widget()->grab().scaledToWidth(mThumbnailWidth/2);
QDrag *drag = new QDrag(this); QDrag *drag = new QDrag(this);
drag->setMimeData(new QMimeData()); drag->setMimeData(new QMimeData());
......
...@@ -901,10 +901,11 @@ void UBDraggableThumbnail::mousePressEvent(QGraphicsSceneMouseEvent *event) ...@@ -901,10 +901,11 @@ void UBDraggableThumbnail::mousePressEvent(QGraphicsSceneMouseEvent *event)
deletePage(); deletePage();
else if(getIcon("duplicate")->triggered(p.x())) else if(getIcon("duplicate")->triggered(p.x()))
duplicatePage(); duplicatePage();
/*
else if(movableUp() && getIcon("moveUp")->triggered(p.x())) else if(movableUp() && getIcon("moveUp")->triggered(p.x()))
moveUpPage(); moveUpPage();
else if (movableDown() && getIcon("moveDown")->triggered(p.x())) else if (movableDown() && getIcon("moveDown")->triggered(p.x()))
moveDownPage(); moveDownPage();*/
} }
event->accept(); event->accept();
......
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