diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-06-07 12:58:39 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-06-08 13:33:56 +0000 |
commit | 08437d525a168df9abbda74d5b5ffddfd2841702 (patch) | |
tree | 5e626493ea655f4ac04e5c5f46af04d66d5b571b /src | |
parent | d09a7a6a344743fc01a34d153d1bd3384e77c1d7 (diff) |
Imagine: clarify 9-patch line documentation
Explain that the 9-patch lines must be one pixel thick regardless of
the intended DPI (e.g. @2x) of the image.
Task-number: QTBUG-66834
Change-Id: I57ab0460bf190a67a436dd63543ea0e09812a898
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc index 9061097b..8fb5e3b6 100644 --- a/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc +++ b/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc @@ -2299,9 +2299,15 @@ \image qtquickcontrols2-imagine-9-patch-4x.png The content of the image is 44 pixels wide by 32 pixels high. Every 9-patch - image needs a one pixel thick border around every side, so the actual size - of the image becomes 46 pixels wide by 34 pixels high. The 9-patch lines - must be black, and the remaining areas must be transparent or white: + image needs a one pixel thick line (collectively referred to as + "9-patch lines") around every side, so the actual size of the image becomes + 46 pixels wide by 34 pixels high. Note that the 9-patch lines must be one + pixel thick regardless of the target DPI of the image. For example, + the 9-patch lines for button-background.9.png and button-background@2x.9.png + must both be one pixel thick. + + The 9-patch lines must be black, and the remaining areas must be transparent + or white: \image qtquickcontrols2-imagine-9-patch-size.png |