@ -43,6 +43,8 @@
# include "domain/UBGraphicsTextItem.h"
# include "domain/UBGraphicsTextItem.h"
# include "domain/UBGraphicsPixmapItem.h"
# include "domain/UBGraphicsPixmapItem.h"
# include "domain/UBGraphicsWidgetItem.h"
# include "domain/UBGraphicsWidgetItem.h"
# include "domain/UBGraphicsPDFItem.h"
# include "domain/UBGraphicsPolygonItem.h"
# include "domain/UBItem.h"
# include "domain/UBItem.h"
# include "document/UBDocumentProxy.h"
# include "document/UBDocumentProxy.h"
@ -50,6 +52,9 @@
# include "customWidgets/UBDraggableLabel.h"
# include "customWidgets/UBDraggableLabel.h"
# include "customWidgets/UBDraggableMedia.h"
# include "customWidgets/UBDraggableMedia.h"
# include "tools/UBGraphicsCompass.h"
# include "tools/UBGraphicsCache.h"
# include "core/memcheck.h"
# include "core/memcheck.h"
UBBoardView : : UBBoardView ( UBBoardController * pController , QWidget * pParent )
UBBoardView : : UBBoardView ( UBBoardController * pController , QWidget * pParent )
@ -422,9 +427,12 @@ UBBoardView::mousePressEvent (QMouseEvent *event)
if ( ! movingItem
if ( ! movingItem
| | movingItem - > isSelected ( )
| | movingItem - > isSelected ( )
| | ( movingItem - > type ( ) = = UBGraphicsDelegateFrame : : Type
| | movingItem - > type ( ) = = UBGraphicsDelegateFrame : : Type
| | movingItem - > type ( ) = = DelegateButton : : Type )
| | movingItem - > type ( ) = = DelegateButton : : Type
| | existingTools . contains ( movingItem ) )
| | movingItem - > type ( ) = = UBGraphicsCompass : : Type
| | movingItem - > type ( ) = = UBGraphicsPDFItem : : Type
| | movingItem - > type ( ) = = UBGraphicsPolygonItem : : Type
| | movingItem - > type ( ) = = UBGraphicsCache : : Type )
{
{
movingItem = NULL ;
movingItem = NULL ;
QGraphicsView : : mousePressEvent ( event ) ;
QGraphicsView : : mousePressEvent ( event ) ;