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

List:       kde-core-devel
Subject:    Re: [patch] ToolTip also in konq-ListView
From:       David Faure <faure () kde ! org>
Date:       2004-11-22 12:51:03
Message-ID: 200411221351.03963.faure () kde ! org
[Download RAW message or body]

On Monday 22 November 2004 10:12, Martin Koller wrote:
> On Monday 22 November 2004 09:55, Martin Koller wrote:
> >
> > (the bt shows qscrollview - seems that the timer event accesses a widget
> > which is no longer available)
> 
> Fixed.
> 
> I forgot to delete KonqFileTip in listviewwidgets destructor.
> 
> But I have a question regarding this: why was the original KFileTip already 
> implemented in a way, that it has no parent object ?
> (The QFrame base ctor is called with 0 as parent)

Well it is a toplevel widget, it's not a child (visually) of the iconview. If you make it
a child widget, it won't be able to appear on top of other widgets (like toolbars etc.)

For memory management it was created and deleted by KonqIconViewWidgetPrivate, so
there was no leak.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

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