[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Daniel Calviño Sánchez
danxuliu at gmail.com
Thu May 18 19:54:06 UTC 2006
SVN commit 542347 by danxuliu:
Fix to move object widgets in collaboration diagrams in vertical direction. Thanks Achim for noticing.
M +5 -1 objectwidget.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/objectwidget.cpp #542346:542347
@@ -36,7 +36,7 @@
static const int sequenceLineMargin = 20;
ObjectWidget::ObjectWidget(UMLView * view, UMLObject *o, Uml::IDType lid)
- : UMLWidget(view, o, new ObjectWidgetController(this)) {
+ : UMLWidget(view, o) {
init();
if( lid != Uml::id_None )
m_nLocalID = lid;
@@ -55,6 +55,10 @@
messageWidgetList.setAutoDelete(false);
if( m_pView != NULL && m_pView -> getType() == Uml::dt_Sequence ) {
m_pLine = new SeqLineWidget( m_pView, this );
+
+ //Sets specific widget controller for sequence diagrams
+ delete m_widgetController;
+ m_widgetController = new ObjectWidgetController(this);
} else {
m_pLine = NULL;
}
More information about the umbrello-devel
mailing list