[Digikam-devel] A note on sidebar widths

Gilles Caulier caulier.gilles at gmail.com
Thu Sep 18 12:48:20 BST 2008


2008/9/18 Marcel Wiesweg <marcel.wiesweg at gmx.de>

>
> > Marcel,
> >
> > There still something wrong with sidebar width, especially on right side.
> > Look code from this method : SideBar::updateMinimumWidth()
> >
> > This code must set the minimun width of sidebar container accordingly
> with
> > minimum width of current widgets hosted in sidebar tabs. This is used in
> > editor, when RawImport is load in sidebar. Settings from this tools take
> > more space than the rest of tabs. So, the sidebar tab is adjusted
> > accordingly...
> >
> > But when RawImport tool is removed from sidebar, the minimal width must
> be
> > actualized. SideBar::updateMinimumWidth() is called another time and
> > sometime it's work, sometime no...
> >
> > Any idea ?
>
> I am wondering why is this call necessary at all? The stacked layout should
> take care of any minimum requirements of contained widgets, does it not do
> it?
> Usually, when a widget is removed or added, the layout should be notified
> by
> that and relayout?
>

Well, if you don't call SideBar::updateMinimumWidth() after to remove a tab
(as RawImport), the minimal size to sidebar is fine, but sidebar still at
the last width set by RawImport settings widget which is huge. you need to
resize by hand. this is what i want to automatize.

Gilles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20080918/f054648f/attachment.html>


More information about the Digikam-devel mailing list