MainWindow layouting

Mark Kretschmann kretschmann at kde.org
Wed Mar 24 20:41:37 CET 2010


On Wed, Mar 24, 2010 at 8:28 PM, Thomas Lübking <thomas.luebking at web.de> wrote:
> just a check before i start:
>
> the purpose of the signal/timer driven layouting code in MainWindow is to
> preserve a constant aspect between the three docks (media sources, context,
> playlist) - not to actually keep an "up-to-date" copy of the layout in
> permanent memory (the HD), eg. to carry it around segfaults (what should not
> happen in the first place anyway ;-)
>
> right?

Yes, correct.

In fact it's a hack that took us a long time to get right. Qt's dock
widget system isn't exactly great, in many respects.


PS:
Making the layout crash persistent by storing it immediately is sort
of an incidental (but positive) side effect of this hack.

-- 
Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe
http://amarok.kde.org - http://www.fsfe.org


More information about the Amarok-devel mailing list