Improve the accuracy of Units.gridUnit documentation
It never held the width of an 'M', it held the height of a boundingRect that happened to contain an 'M'. The fact that there is an 'M' doesn't really matter since the bounding rect is much taller.
This commit is contained in:
parent
a7aeba21c4
commit
fb883e2740
@ -41,8 +41,8 @@ class Units : public QObject
|
||||
|
||||
/**
|
||||
* The fundamental unit of space that should be used for sizes, expressed in pixels.
|
||||
* Given the screen has an accurate DPI settings, it corresponds to a width of
|
||||
* the capital letter M
|
||||
* Given the screen has an accurate DPI settings, it corresponds to the height of
|
||||
* the font's boundingRect.
|
||||
*/
|
||||
Q_PROPERTY(int gridUnit READ gridUnit NOTIFY gridUnitChanged)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user