[Uml-devel] KDE/kdesdk/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Tue Dec 20 11:10:05 UTC 2005


SVN commit 490086 by okellogg:

apply commit 490084 from branches/KDE/3.5


 M  +1 -1      ChangeLog  
 M  +8 -0      umbrello/entitywidget.cpp  


--- trunk/KDE/kdesdk/umbrello/ChangeLog #490085:490086
@@ -1,7 +1,7 @@
 Version 1.5.1
 
 * Bugs fixed / wishes implemented (see http://bugs.kde.org)
-109963 117875 117791
+109963 117791 117875 117990 118570
 
 Version 1.5
 
--- trunk/KDE/kdesdk/umbrello/umbrello/entitywidget.cpp #490085:490086
@@ -104,8 +104,16 @@
     for (entityattribute = list.first(); entityattribute; entityattribute = list.next()) {
         QString text = entityattribute->getName();
         p.setPen( QPen(Qt::black) );
+        UMLEntityAttribute* casted = dynamic_cast<UMLEntityAttribute*>( entityattribute );
+        if( casted && casted->getIndexType() == Uml::Primary )
+        {
+            font.setUnderline( true );
+            p.setFont( font );
+            font.setUnderline( false );
+        }
         p.drawText(offsetX + ENTITY_MARGIN, offsetY + y,
                    fontMetrics.width(text), fontHeight, Qt::AlignVCenter, text);
+        p.setFont( font );
         y+=fontHeight;
     }
 




More information about the umbrello-devel mailing list