summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-08-15 13:13:01 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-15 15:30:05 +0200
commit76cec118d0636c66ec7c3e62f475128ea8fd7429 (patch)
treeb910e087cbbdafe703b808094f37fc6b91cdae2d /src/widgets/kernel
parentab802b3c855c6a6aef976c42d09b6e5c6724d06b (diff)
Update docs.
Change-Id: I7bd1f1efe2d6ce3aee8cb7454f43cfef2979f525 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qwidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index dbf027b25a..09bbb9563c 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -4737,7 +4737,7 @@ static void sendResizeEvents(QWidget *target)
\since 5.0
Renders the widget into a pixmap restricted by the
- given \a rectangle. If the \a widget has any children, then
+ given \a rectangle. If the widget has any children, then
they are also painted in the appropriate positions.
If a rectangle with an invalid size is specified (the default),
@@ -11217,6 +11217,11 @@ void QWidget::ungrabGesture(Qt::GestureType gesture)
\a m is the metric to get.
*/
+/*!
+ Initializes the \a painter pen, background and font to the same as
+ the given widget's. This function is called automatically when the
+ painter is opened on a QWidget.
+*/
void QWidget::init(QPainter *painter) const
{
const QPalette &pal = palette();