[PATCH] Rename dialog is too big (or too narrow)
faure at kde.org
Tue Jan 22 15:07:57 GMT 2008
On Tuesday 22 January 2008, Andras Mantia wrote:
> On Tuesday 22 January 2008, David Faure wrote:
> > On Tuesday 22 January 2008, Andras Mantia wrote:
> > > Later the dialog is resized to the sizeHint
> > > value, but as KSqueezedTextLabel returns the actual size of the
> > > label, the sizeHint remains unchanged: the dialog appears with a
> > > squeezed text, even if the full text would fit on the screen.
> > Isn't this something that could be solved with a MinimumExpanding
> > size policy?
> I tried, but does not work, probably because KSqueezedTextLabel doesn't
> want to be bigger than it is (its sizeHint is the size of the squeezed
Then it should have a sizeHint that is "the size of the full text", but limited to
a reasonable value so that the dialog isn't bigger than the screen.
(and a minimumSizeHint that is "the size of the squeezed text", or even "the size
of the text when squeezed the most", actually).
After all that definition of the sizeHint is what we want, no?
To squeeze the text only so that it fits into the screen, not to squeeze it as much as possible...
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel