MainWindow tied splitterMoved event

Dirk Hohndel dirk at hohndel.org
Tue Feb 11 07:42:43 UTC 2014


On Tue, 2014-02-11 at 13:16 -0200, Tomaz Canabrava wrote:
> 
> On Tue, Feb 11, 2014 at 1:07 PM, Boris Barbulovski
> <bbarbulovski at gmail.com> wrote:
>         
>         
>         This patch makes both MainWindow splitters to move the same
>         when one of them is moved by the user.
>         
>         
>         In order to access QSplitter protected member, I had to
>         subclass QSplitter into new class.
>         
>         
>         I know this practice is not preferred, but should work for
>         this scenario just fine.
>         
>         Maybe(in some future) I will create QGridSplitter widget, but
>         until then, this is the best solution.
>         
>         
>         br, Boris..
>         
> 
> 
> Boris,
> 
> 
> I didn't liked the result of this patch - The Profile Graph and the
> Dive List have a lot of information, and I usually let the globe small
> with a big list, and the profile big with the info small.
> 
> with your patch things got quite complicated.

I agree with Tomaz - we really want to be able to have the four
sub-windows be able to resize relatively independently. Yes, we have the
horizontal divider that goes "all the way through", but the two upper
and two lower panes do not have to be aligned at all.

/D




More information about the subsurface mailing list