diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index aee9e19d..817aa4ba 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -359,7 +359,7 @@ bool UBGraphicsItemDelegate::mouseMoveEvent(QGraphicsSceneMouseEvent *event) return false; } -bool UBGraphicsItemDelegate::weelEvent(QGraphicsSceneWheelEvent *event) +bool UBGraphicsItemDelegate::wheelEvent(QGraphicsSceneWheelEvent *event) { Q_UNUSED(event); if( delegated()->isSelected() ) diff --git a/src/domain/UBGraphicsItemDelegate.h b/src/domain/UBGraphicsItemDelegate.h index 7c982ce4..af776187 100644 --- a/src/domain/UBGraphicsItemDelegate.h +++ b/src/domain/UBGraphicsItemDelegate.h @@ -247,7 +247,7 @@ class UBGraphicsItemDelegate : public QObject virtual bool mousePressEvent(QGraphicsSceneMouseEvent *event); virtual bool mouseMoveEvent(QGraphicsSceneMouseEvent *event); virtual bool mouseReleaseEvent(QGraphicsSceneMouseEvent *event); - virtual bool weelEvent(QGraphicsSceneWheelEvent *event); + virtual bool wheelEvent(QGraphicsSceneWheelEvent *event); virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event); virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event); diff --git a/src/domain/UBGraphicsProxyWidget.cpp b/src/domain/UBGraphicsProxyWidget.cpp index 490bae04..046541df 100644 --- a/src/domain/UBGraphicsProxyWidget.cpp +++ b/src/domain/UBGraphicsProxyWidget.cpp @@ -125,7 +125,7 @@ void UBGraphicsProxyWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) void UBGraphicsProxyWidget::wheelEvent(QGraphicsSceneWheelEvent *event) { - if( Delegate()->weelEvent(event) ) + if( Delegate()->wheelEvent(event) ) { QGraphicsProxyWidget::wheelEvent(event); event->accept(); diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index 6b67923b..5491d1b3 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -149,7 +149,6 @@ qreal UBZLayerController::changeZLevelTo(QGraphicsItem *item, moveDestination de if (mScene->items().count()) { foreach (QGraphicsItem *tmpItem, mScene->items()) { if (typeForData(tmpItem) == curItemLayerType) { - sortedItems.insert(tmpItem->data(UBGraphicsItemData::ItemOwnZValue).toReal(), tmpItem); } } @@ -335,7 +334,7 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta } // Just for debug. Do not delete please - connect(this, SIGNAL(selectionChanged()), this, SLOT(selectionChangedProcessing())); +// connect(this, SIGNAL(selectionChanged()), this, SLOT(selectionChangedProcessing())); connect(this, SIGNAL(selectionChanged()), this, SLOT(updateGroupButtonState())); connect(UBApplication::undoStack.data(), SIGNAL(indexChanged(int)), this, SLOT(updateSelectionFrameWrapper(int))); } diff --git a/src/domain/UBGraphicsWidgetItem.cpp b/src/domain/UBGraphicsWidgetItem.cpp index b823f724..dcaf3a18 100644 --- a/src/domain/UBGraphicsWidgetItem.cpp +++ b/src/domain/UBGraphicsWidgetItem.cpp @@ -617,7 +617,7 @@ void UBGraphicsWidgetItem::mainFrameLoadFinished (bool ok) void UBGraphicsWidgetItem::wheelEvent(QGraphicsSceneWheelEvent *event) { - if (Delegate()->weelEvent(event)) + if (Delegate()->wheelEvent(event)) { QGraphicsWebView::wheelEvent(event); event->accept();