[Uml-devel] kdesdk/umbrello/umbrello

Klas Kalass klas.kalass at gmx.de
Sat May 31 09:27:02 UTC 2003


CVS commit by kalass: 

introduced getter for FontMetrics. This allows to use the correct FontMetrics 
when printing and thus printed widgets will look like their screen counterpart
when the printer font has different metrics than the screen font (wiget size 
is computed from the font metrics).

Furthermore this change should rather increase performance than decrease it 
because QFontMetrics are now cached and only created when something changed.

Fixed layout issues for classwidgets and interfacewidgets where text was 
cut off sometimes by using the font metrics for calculations that correspond
to the really used font for rendering.

The font metrics will be updated prior to printing and afterwards.
The remaining problem is that the widgets itself are correct now, but the 
spacial relationship between them looks wrong, because those values are 
absolute and not computed from the font metrics.


  M +2 -3      activitywidget.cpp   1.7
  M +2 -2      actorwidget.cpp   1.3
  M +6 -12     artifactwidget.cpp   1.3
  M +25 -20    classwidget.cpp   1.4
  M +1 -0      classwidget.h   1.3
  M +2 -5      componentwidget.cpp   1.6
  M +1 -1      floatingtext.cpp   1.13
  M +15 -17    interfacewidget.cpp   1.4
  M +2 -5      nodewidget.cpp   1.4
  M +1 -1      notewidget.cpp   1.6
  M +4 -11     objectwidget.cpp   1.12
  M +1 -0      objectwidget.h   1.7
  M +2 -5      packagewidget.cpp   1.3
  M +2 -4      statewidget.cpp   1.7
  M +51 -10    umlview.cpp   1.58
  M +7 -3      umlview.h   1.24
  M +99 -0     umlwidget.cpp   1.31
  M +50 -21    umlwidget.h   1.12
  M +2 -2      usecasewidget.cpp   1.3







More information about the umbrello-devel mailing list