[Uml-devel] branches/work/soc-umbrello/umbrello

Gopala Krishna A krishna.ggk at gmail.com
Fri Aug 1 15:48:21 UTC 2008


SVN commit 840706 by gopala:

Initialize lineColor to red for NewUMLWidget.



 M  +3 -2      newumlwidget.cpp  


--- branches/work/soc-umbrello/umbrello/newumlwidget.cpp #840705:840706
@@ -66,6 +66,7 @@
  */
 NewUMLWidget::NewUMLWidget(UMLObject *object) :
     m_umlObject(object),
+    m_lineColor(Qt::red),
     m_lineWidth(0),
     m_widgetInterfaceData(0),
     firstTime(true)
@@ -552,8 +553,6 @@
     const Uml::Widget_Type wt = m_baseType; // short hand name
 
     ListPopupMenu *menu = qobject_cast<ListPopupMenu *>(trigger->parent());
-    uDebug() << (void*)menu;
-    Q_ASSERT(menu);
 
     ListPopupMenu::Menu_Type sel = menu->getMenuType(trigger);
     switch (sel) {
@@ -857,6 +856,7 @@
     QGraphicsItem(0),
 
     m_umlObject(object),
+    m_lineColor(Qt::red),
     m_lineWidth(0),
     m_widgetInterfaceData(0),
     firstTime(true)
@@ -879,6 +879,7 @@
 
 NewUMLWidget::NewUMLWidget(UMLScene *scene, const Uml::IDType &_id) :
     m_umlObject(0),
+    m_lineColor(Qt::red),
     m_lineWidth(0),
     firstTime(true)
 {




More information about the umbrello-devel mailing list