[Uml-devel] kdesdk/umbrello/umbrello

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Fri Jun 6 11:58:10 UTC 2003


CVS commit by pfeiffer: 

objects shall be drawn underlined


  M +8 -0      objectwidget.cpp   1.13


--- kdesdk/umbrello/umbrello/objectwidget.cpp  #1.12:1.13
@@ -199,4 +199,9 @@ void ObjectWidget::cleanup() {
 void ObjectWidget::drawObject(QPainter & p, int offsetX, int offsetY) {
 
+        QFont font = p.font();
+        bool wasUnderlined = font.underline();
+        font.setUnderline( true );
+        p.setFont( font );
+
         p.setPen(m_pData->getLineColour());
         if(m_pData->getUseFillColor())
@@ -220,4 +225,7 @@ void ObjectWidget::drawObject(QPainter &
                 p.drawText(offsetX + O_MARGIN, offsetY + O_MARGIN, w - O_MARGIN * 2, h - O_MARGIN * 2, AlignCenter, t);
         }
+
+        font.setUnderline( wasUnderlined );
+        p.setFont( font );
 }
 






More information about the umbrello-devel mailing list