summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qwidget.cpp2
-rw-r--r--src/widgets/kernel/qwidget.h2
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;