From 65f492442528c057471c46e141c8b70da9b021ec Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 7 Sep 2011 22:01:49 +0200 Subject: [PATCH] Fix a typo in the method name Change-Id: Ic23877e46b0b94222ae10d5ac766825ea5184e3e Reviewed-on: http://codereview.qt-project.org/4403 Reviewed-by: Qt Sanity Bot Reviewed-by: Vesa Rantanen Reviewed-by: Lars Knoll --- src/gui/kernel/qinputpanel.cpp | 5 ++++- src/gui/kernel/qinputpanel.h | 2 +- src/widgets/kernel/qwidget.cpp | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/kernel/qinputpanel.cpp b/src/gui/kernel/qinputpanel.cpp index e58202f2a5..24300018f6 100644 --- a/src/gui/kernel/qinputpanel.cpp +++ b/src/gui/kernel/qinputpanel.cpp @@ -82,9 +82,12 @@ QTransform QInputPanel::inputItemTransform() const return d->inputItemTransform; } -void QInputPanel::setInputItemTranform(const QTransform &transform) +void QInputPanel::setInputItemTransform(const QTransform &transform) { Q_D(QInputPanel); + if (d->inputItemTransform == transform) + return; + d->inputItemTransform = transform; emit cursorRectangleChanged(); } diff --git a/src/gui/kernel/qinputpanel.h b/src/gui/kernel/qinputpanel.h index c16a18eea9..9db54b6664 100644 --- a/src/gui/kernel/qinputpanel.h +++ b/src/gui/kernel/qinputpanel.h @@ -73,7 +73,7 @@ public: QWindow *inputWindow() const; QTransform inputItemTransform() const; - void setInputItemTranform(const QTransform &transform); + void setInputItemTransform(const QTransform &transform); // in window coordinates QRectF cursorRectangle() const; // ### what if we have rotations for the item? diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 494152d78e..0cecce8cfb 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -368,7 +368,7 @@ void QWidgetPrivate::updateWidgetTransform() QTransform t; QPoint p = q->mapTo(q->topLevelWidget(), QPoint(0,0)); t.translate(p.x(), p.y()); - qApp->inputPanel()->setInputItemTranform(t); + qApp->inputPanel()->setInputItemTransform(t); } }