One bug...

Roland Krause rokrau at yahoo.com
Thu Jun 7 13:20:24 UTC 2001


Falk,
yes my Solaris buils is based on gcc-2.95.2, so yes, it does support
dynamic casts. 
And, no I have not changed to kateView yet. 
So there is a bug somewhere in here. Maybe it is that the break
statement is missing and that there is more than one child that
inherits QWidget? 

Does the saving upon closing a modified file fail for you, or not?
Roland

--- "F at lk Brettschneider" <gigafalk at yahoo.com> wrote:
> Roland Krause wrote:
> > 
> > The following code in docviewman.cpp:731 ff.
> > 
> >   // the first object we'll find is the layout,
> >   // the second test will be successful for the one and only
> embedded
> > widget
> >   for ( pChild = pL->first(); pChild && !pView; pChild =
> pL->next()) {
> >     if (pChild->inherits("QWidget")) {
> >       pView = (QWidget*) pChild;
> >     }
> >   }
> > 
> >   if (CEditWidget* pEditView = dynamic_cast<CEditWidget*> (pView))
> {
> > 
> > tries to find the CEditWidget, it does find a QWidget (btw. a break
> > is missing also) but the dynamic_cast to a CEditWidget pointer
> return 0
> > so
> > the document contained in the view is never given the chance to
> save
> > itself.
> > 
> > Maybe there is an easy fix, I dont see it, but I am confident that
> you
> > will.
> It seems your Solaris doesn't support dynamic casts, do it?
> I am sure the embedded editor widget is always a CEditWidget. Or did
> you
> already change it to KateView? ;-)
> 
> Ciao,
> Falk
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> -
> to unsubscribe from this list send an email to
> kdevelop-devel-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«

=====
--
Roland Krause
In the garage of life there are mechanics and 
there are drivers. Mechanics wanted!

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list