[Digikam-devel] Re: [Patch] make UI more usable on small screens
Matthias Welwarsky
matze at welwarsky.de
Fri Feb 11 09:05:39 GMT 2011
On Thursday 10 February 2011 20:46:45 Matthias Welwarsky wrote:
> With the patch, any SidebarWidget derivative actually becomes a
> QScrollArea, which contains the actual tool view. To determine an
> appropriate
> minimumSizeHint(), it requests the minimumSizeHint() of the widget it
> contains and makes sure the width is not larger than 20% of the screen
> width.
>
> Before, the largest minimumSizeHint() of all widgets in the sidebar would
> determine its minimum width. For widgets like the gpssearch this was > 300
> pixels, which means the sidebar took more than 1/3rd of a 1024 pixel
> screen, no matter which tool was opened.
>
> The patch allows the sidebar to become smaller than what the largest tool
> widget demands. To achieve this, overriding the minimumSizeHint() in class
> SidebarWidget would have been enough, but then tools demanding larger size
> become squeezed pretty badly. Hence the addition of a QScrollArea.
However, there is a problem now that the minimum height becomes too large. The
app window won't resize smaller than 638 pixels high, which is not good. I'll
need to fix that first.
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
More information about the Digikam-devel
mailing list