Commit a5c7776e authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

SANKORE-564

QT: PDF layer can be moved by using "Arrow"
SANKORE-537
with mask, masking ruler or compass..., the pointer changes of icon when it comes on the tool, but we can't do nothing because it's behind the mask
parent 6c8c9843
......@@ -43,6 +43,8 @@
#include "domain/UBGraphicsTextItem.h"
#include "domain/UBGraphicsPixmapItem.h"
#include "domain/UBGraphicsWidgetItem.h"
#include "domain/UBGraphicsPDFItem.h"
#include "domain/UBGraphicsPolygonItem.h"
#include "domain/UBItem.h"
#include "document/UBDocumentProxy.h"
......@@ -50,6 +52,9 @@
#include "customWidgets/UBDraggableLabel.h"
#include "customWidgets/UBDraggableMedia.h"
#include "tools/UBGraphicsCompass.h"
#include "tools/UBGraphicsCache.h"
#include "core/memcheck.h"
UBBoardView::UBBoardView (UBBoardController* pController, QWidget* pParent)
......@@ -422,9 +427,12 @@ UBBoardView::mousePressEvent (QMouseEvent *event)
if (!movingItem
|| movingItem->isSelected()
|| (movingItem->type() == UBGraphicsDelegateFrame::Type
|| movingItem->type() == DelegateButton::Type)
|| existingTools.contains(movingItem))
|| movingItem->type() == UBGraphicsDelegateFrame::Type
|| movingItem->type() == DelegateButton::Type
|| movingItem->type() == UBGraphicsCompass::Type
|| movingItem->type() == UBGraphicsPDFItem::Type
|| movingItem->type() == UBGraphicsPolygonItem::Type
|| movingItem->type() == UBGraphicsCache::Type)
{
movingItem = NULL;
QGraphicsView::mousePressEvent (event);
......
......@@ -84,6 +84,8 @@ UBGraphicsDelegateFrame::UBGraphicsDelegateFrame(UBGraphicsItemDelegate* pDelega
setAntiScale(1.0);
positionHandles();
this->setAcceptHoverEvents(true);
}
......
......@@ -48,6 +48,7 @@ UBGraphicsCurtainItem::UBGraphicsCurtainItem(QGraphicsItem* parent)
setData(UBGraphicsItemData::ItemLayerType, UBItemLayerType::Tool);
setPen(Qt::NoPen);
this->setAcceptHoverEvents(true);
}
UBGraphicsCurtainItem::~UBGraphicsCurtainItem()
......
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