Bug 71432

Summary: Last character of public attributes not completely displayed
Product: [Applications] umbrello Reporter: Robert Lemmen <robertle>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Robert Lemmen 2003-12-29 15:10:15 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

When creating a public attribute the last char is not completely displayed. It only happens with attributes and only when they are the widest string which composes the class (class name, methods, attributes).
E.g create a class named Foo then add an attribute named "redundantInstance" and give it the "string" type.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225339
Comment 1 Jonathan Riddell 2003-12-29 16:08:40 UTC

*** This bug has been marked as a duplicate of 71174 ***
Comment 2 Sebastian Stein 2003-12-29 17:49:38 UTC
Subject: Re: [Uml-devel]  New: Last character of public attributes not completely displayed

Robert Lemmen <robertle@semistable.com> [031229 17:38]:
> When creating a public attribute the last char is not completely
> displayed. It only happens with attributes and only when they are the
> widest string which composes the class (class name, methods, attributes).
> E.g create a class named Foo then add an attribute named
> "redundantInstance" and give it the "string" type.

I already worked on this issue some time ago. Please reopen bug #66461 and
mark this one as a duplicate. I hope someone else can look into it, because
I would say it is a qt bug, but I'm really not sure.

See also my CVS commit of 2003/11/6 with the following CVS commit message:

# fix bug #66461:
# This is a dirty fix, I know. But I can't really understand, why QFontMetrics
# &fm = getFontMetrics(UMLWidget::FT_NORMAL); returns sometimes a too small
# value (about 1 or 2 pixels). The gracy thing is, that it works some lines
# above (for attributes in classes it works, for operations it doesn't).
# 
# Maybe someone else sees the real reason. I also removed the calculateSize()
# call before every drawing, it works without this call now. I also replaced
# some ? : with if else if else conditions. I think this makes the code more
# readable. I also added some comments.
# 
# 
#   M +35 -14    classwidget.cpp   1.18
#   M +3 -1      enumwidget.cpp   1.3
#   M +21 -8     interfacewidget.cpp   1.15
 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225339

Why do we have debian bug reports as well? Aren't they redundant? Why can't
debian users use our bug report system?

Steinchen
Comment 3 Robert Lemmen 2003-12-29 17:55:28 UTC
Subject: Re:  Last character of public attributes not completely displayed

On Mon, Dec 29, 2003 at 04:49:40PM -0000, Sebastian Stein wrote:
> Why do we have debian bug reports as well? Aren't they redundant? Why can't
> debian users use our bug report system?

The idea is that debian users report bugs they find to their debian
maintainer who checks whether this is a debian-specific bug or not,
tries to reproduce it, and forwards it upstream. this is normally good
for upstream too, as the bug reports tend to have a better quality. in
the case of umbrello this isn't such a big problem because the users are
developers too, but try to read a bug report for a financial planning
software ;)

sorry for duplicating the bug, i thought i had looked for it...

cu  robert