Sections
Report typeBug Status?Closed Resolution?Expired
ProductQt Functional areaLayout Version found4.4.1
Priority?3 Scheduled for?Some future release

Description

Calling getContentsMargins() for a QLineEdit does not report about the two margins used internally, look for
#define verticalMargin 1
#define horizontalMargin 2
and their uses in size calculations in qlineedit.cpp.

This frustrates one who tries to calculate with the components of a QLineEdit.

It should be also made more clear that content includes the margins around it for functions like QStyle::>sizeFromContents().

See also http://frinring.wordpress.com/2008/10/14/better-width-with-open-sources/ :)

This task has been migrated into the public JIRA server as issue QTBUG-3005.
http://bugreports.qt.nokia.com/browse/QTBUG-3005

History

2008-10-20 13:13 - Entry created: Task status changed to 'Open', Resolution set to 'Pending', Version found set to '4.4.1', Version for fix set to 'Not scheduled', Priority changed to 'No Priority'
2008-11-11 09:06 - Version for fix set to 'Some future release'
2008-11-11 09:06 - Priority changed to '3'
2009-10-28 06:35 - Resolution set to 'Expired'
2009-10-28 06:35 - Task status changed to 'Closed'

Patron of KDECustomers

Customers