summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMarius Bugge Monsen <mmonsen@trolltech.com>2009-04-29 15:55:57 (GMT)
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-04-29 16:01:12 (GMT)
commit65e0d7c3b63fc4c1d7df7603b926ca013794b321 (patch)
tree80bdffda10fcc2f6bc06b137ad10667c04be2691 /src/corelib
parentfa80385e0082fa9012ec08134a381e29b020c48f (diff)
downloadQt-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 'src/corelib')
-rw-r--r--src/corelib/global/qnamespace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index a519f4a..9b26ef3 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -188,6 +188,12 @@ public:
#endif
};
+ enum TileRule {
+ Stretch,
+ Repeat,
+ Round
+ };
+
// Text formatting flags for QPainter::drawText and QLabel.
// The following two enums can be combined to one integer which
// is passed as 'flags' to drawText and qt_format_text.