[Uml-devel] KDE/kdesdk/umbrello/umbrello

Ralf Habacker ralf.habacker at gmail.com
Mon Mar 12 02:48:22 UTC 2012


SVN commit 1285096 by habacker:

Provide dot edge with the association line.

 M  +2 -2      dotgenerator.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/dotgenerator.h #1285095:1285096
@@ -255,7 +255,7 @@
             QString label;
             QString type = assoc->associationType().toString().toLower();
             QString key = "type::" + type;
-            label = type;
+            label = assoc->getName();
             QString edgeParameters;
 
             QString rkey = QLatin1String("ranking::") + key;
@@ -277,7 +277,7 @@
             QString aID = fixID(ID2STR(assoc->getWidgetID(Uml::A)));
             QString bID = fixID(ID2STR(assoc->getWidgetID(Uml::B)));
             if (!findItem(params,"label="))
-                params << QString("label=\"%1\"").arg(type);
+                params << QString("label=\"%1\"").arg(label);
 
 #ifdef DOTGENERATOR_DATA_DEBUG
             uDebug() << type << params;




More information about the umbrello-devel mailing list