[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kuml-devel
Subject:    Re: How to make a new connection ?
From:       p_george <p_george () club-internet ! fr>
Date:       2000-01-16 19:50:41
[Download RAW message or body]

p_george wrote:

I managed to get this work, just by chance !

> 
> During the code import phase, I create generalization links between
> Classes.
> 
> This is an extract (slightly simplified) beginning at line 614 of
> kuml.cpp :
> 
>         QString name("foobar");
>         DrawingGeneralization * link = new
> DrawingGeneralization((QWidget*)NULL, getPtrDrawingArea());
>         link->setLabel(name);
> 
>         link->getConnectionLine()->setDrawingItem(link);
> 
>         link->linkConnection( begin, end );
>         diagram->addDrawingItem(link);
> 
> And it does not work (kuml crashes when trying to draw the widgets),
> with this message before the segfault :
> 
>         PipedLine::drawLine(QPainter): list of line segments is empty !
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic