From 76cec118d0636c66ec7c3e62f475128ea8fd7429 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 15 Aug 2012 13:13:01 +0200 Subject: [PATCH] Update docs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I7bd1f1efe2d6ce3aee8cb7454f43cfef2979f525 Reviewed-by: Samuel Rødal --- src/widgets/kernel/qwidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index dbf027b..09bbb95 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(); -- 2.7.4