diff --git a/widgets/svgwidget.cpp b/widgets/svgwidget.cpp index 7e936d792..72f381b4a 100644 --- a/widgets/svgwidget.cpp +++ b/widgets/svgwidget.cpp @@ -57,9 +57,9 @@ SvgWidget::~SvgWidget() void SvgWidget::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) { - if (receivers(SIGNAL(clicked(Qt::MouseButton)))){ + if (receivers(SIGNAL(clicked(Qt::MouseButton)))) { emit clicked(event->button()); - }else{ + } else { event->accept(); } }