Commit 2d0b20ef authored by David Faure's avatar David Faure Committed by Konstantin Ritt
Browse files

QLineEdit: take text margins into account in minimumSizeHint().


sizeHint() did it exactly like this, but minimumSizeHint() didn't,
which made it too small. Didn't affect the actual size in most cases
since the vertical size policy is fixed, so sizeHint() is called instead.
But when writing a subclass, if one re-implements sizeHint() by
calling the QLineEdit's minimumSizeHint(), it would then be wrong,
when text margins are used.

Change-Id: I29ae8dcab00842b3b5ca534cdb250efc0b496f45
Reviewed-by: default avatarGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
parent b9d98c10
Showing with 14 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment