[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: koffice/lib/kofficeui [PATCH]
From: David Faure <faure () kde ! org>
Date: 2004-08-22 18:57:57
Message-ID: 200408222057.57905.faure () kde ! org
[Download RAW message or body]
On Sunday 22 August 2004 15:55, p.stirnweiss_koffice@bluewin.ch wrote:
> Here it is. I replaced the HBox and stuff by a grid layout.
Thanks.
> I used the same technique as Peter Simonsson for the margins part (setting
> the GroupBox's layout column to auto and inserting the QGridLayout as a child
> of the groupbox's layout. It works but I don't really understand the logic
> behind it : why inserting the QGridLayout with the groupbox as a parent directly
> doesn't work (the title is not taken into account) and inserting the QGridLayout
> as a child of the groupbox's layout works.
A layout normally occupies *all* the space in its parent widget.
In the solution that doesn't work, the QGroupBox is given a QGridLayout as layout,
so that layout occupies all the space in the parent widget -> title is overwritten.
When using a QVGroupBox, the layout is told about the title, since QVGroupBox
takes care of that.
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic