[PATCH] Tabbed MDI window creation fix

Hamish Rodda meddie at yoyo.its.monash.edu.au
Sat Aug 31 08:35:23 UTC 2002


Hi Falk,

F at lk Brettschneider wrote:
> Don't apply that patch.
> The patch is wrong because redocking (via drag-and-drop-with-the-mouse)
> KDockWidgets destroys them and reparents their embedded widgets to newly
> created dockwidgets. So your managment list will contain dangling
> pointers.

Thanks for the heads-up.  I've modified it to track the QextMdiChildViews, 
akin to m_pWinList; then, to get the relevant KDockWidget*, the code checks 
to see if the parent of the QextMdiChildView is a KDockWidget, and casts it 
when a suitable one is found.  Is this ok?

Cheers,

Hamish.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop-tabmdi-20020831.patch
Type: text/x-diff
Size: 3880 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20020831/3cb8e7f3/attachment.bin>


More information about the KDevelop-devel mailing list