Commit 3c29cb83 authored by Ralf Habacker's avatar Ralf Habacker

In note widget use base implementation of showPropertiesDialog() if possible...

In note widget use base implementation of showPropertiesDialog() if possible to avoid duplicate code
parent 83a29a68
......@@ -540,14 +540,11 @@ void NoteWidget::paintTextWordWrap(QPainter *painter)
*/
void NoteWidget::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
if (m_diagramLink == Uml::ID::None) {
showPropertiesDialog();
} else {
UMLDoc *umldoc = UMLApp::app()->document();
umldoc->changeCurrentView(m_diagramLink);
}
if (event->button() == Qt::LeftButton && m_diagramLink != Uml::ID::None) {
UMLDoc *umldoc = UMLApp::app()->document();
umldoc->changeCurrentView(m_diagramLink);
event->accept();
}
} else
UMLWidget::showPropertiesDialog();
}
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