[Digikam-devel] A note on sidebar widths

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Sep 18 12:34:02 BST 2008


> 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?

>
> Gilles





More information about the Digikam-devel mailing list