diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-04-29 15:55:57 (GMT) |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-04-29 16:01:12 (GMT) |
commit | 65e0d7c3b63fc4c1d7df7603b926ca013794b321 (patch) | |
tree | 80bdffda10fcc2f6bc06b137ad10667c04be2691 /doc | |
parent | fa80385e0082fa9012ec08134a381e29b020c48f (diff) | |
download | Qt-65e0d7c3b63fc4c1d7df7603b926ca013794b321.zip Qt-65e0d7c3b63fc4c1d7df7603b926ca013794b321.tar.gz Qt-65e0d7c3b63fc4c1d7df7603b926ca013794b321.tar.bz2 |
Add qDrawBorderPixmap() function, Qt::TileRules enum, QMargins struct and QTileRules struct.
Implements a function to allow drawing CSS3-like border-images (also known as nine-grid images). Next step will be to convert the CSS-style code to use this function for drawing border-images.
Task-number: none
Reviewed-by: jbache
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/qnamespace.qdoc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/src/qnamespace.qdoc b/doc/src/qnamespace.qdoc index 097333b..9ea6b52 100644 --- a/doc/src/qnamespace.qdoc +++ b/doc/src/qnamespace.qdoc @@ -2651,3 +2651,16 @@ \sa QGraphicsWidget::windowFrameSectionAt() */ + +/*! + \enum Qt::TileRule + \since 4.6 + + This enum describes how to repeat or stretch the parts of an image when drawing. + + \value Stretch Scale the image to fit to the available area. + \value Repeat Tile the image until there is no more space. May crop the last image. + \value Round Like Repeat, but scales the images down to ensure that the last image is not cropped. + + \sa QPixmapBorders, qDrawBorderPixmap() +*/ |