One bug...

Roland Krause rokrau at yahoo.com
Fri Jun 8 16:19:43 UTC 2001


Falk,
I 've found the problem. 
CKDevelop::slotFileClose() calls m_docViewManager->doFileClose()
which in turn calls closeView() with pCurEditView as an argument. 
That wont work because closeView expects the argument to be a pointer
to a window. 

I changed the parameter to the closeView() call to a
m_MDICoverList.last() which does the trick. 

We should: 
a) clean this up a little bit
b) change the parameter for closeView() from a QWidget* to a
QMDIChildWindow* or something to prevent this in the future. 

Will commit this later, please have a look. 
Roland


--- "F at lk Brettschneider" <gigafalk at yahoo.com> wrote:
> Hi Roland,
> 
> Roland Krause wrote:
> > 
> > Falk,
> > yes my Solaris buils is based on gcc-2.95.2, so yes, it does
> support
> > dynamic casts.
> OK.
> 
> > 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?
> No.
> But suddenly I suppose what could be wrong... Maybe you use the
> tabpage
> mode and we probably have the case the kwrite widget isn't directly
> embedded in a QextMdiChildView but embedded in a KDockWidget that is
> embedded in a QextMdiChildView... just a thought.... Can you check
> this,
> please?
> See DocViewMan::addQExtMDIFrame(..) for details of the embedding.
> 
> Cheers,
> F at lk
> 
> _________________________________________________________
> 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