diff options
author | Richard Moore <rich@kde.org> | 2012-09-05 09:24:22 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-10 00:27:33 +0200 |
commit | c1d7d0f0b2914878ed43fc6feef7752837ac8049 (patch) | |
tree | de4b84ef040ca2d765a4040e63bc02d9142e6908 /src/widgets | |
parent | 703253d31b27ad03251b296c23177a25c7ec0340 (diff) |
Rename QPaintDevice::init() to initPainter()
The old name was too generic and was likely to cause warnings in user
code.
Change-Id: I7126d8fe89a394cd8388af5a030961af7b69c741
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/kernel/qwidget.cpp | 2 | ||||
-rw-r--r-- | src/widgets/kernel/qwidget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index c068f4e916..c5f033c591 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -11227,7 +11227,7 @@ void QWidget::ungrabGesture(Qt::GestureType gesture) the given widget's. This function is called automatically when the painter is opened on a QWidget. */ -void QWidget::init(QPainter *painter) const +void QWidget::initPainter(QPainter *painter) const { const QPalette &pal = palette(); painter->d_func()->state->pen = QPen(pal.brush(foregroundRole()), 0); diff --git a/src/widgets/kernel/qwidget.h b/src/widgets/kernel/qwidget.h index 67b5251852..5baa3c39b2 100644 --- a/src/widgets/kernel/qwidget.h +++ b/src/widgets/kernel/qwidget.h @@ -643,7 +643,7 @@ protected: virtual void changeEvent(QEvent *); int metric(PaintDeviceMetric) const; - void init(QPainter *painter) const; + void initPainter(QPainter *painter) const; QPaintDevice *redirected(QPoint *offset) const; QPainter *sharedPainter() const; |