Fix constness of QInputPanel::keyboardRectangle()
authorStephen Kelly <stephen.kelly@kdab.com>
Sun, 8 Jan 2012 21:19:36 +0000 (22:19 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 9 Jan 2012 17:53:22 +0000 (18:53 +0100)
Change-Id: I13552ed0c357b19486f389a8fbf2c338652437c9
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/gui/kernel/qinputpanel.cpp
src/gui/kernel/qinputpanel.h

index 3eec3e8..804bcda 100644 (file)
@@ -159,9 +159,9 @@ QRectF QInputPanel::cursorRectangle() const
     \property QInputPanel::keyboardRectangle
     \brief Virtual keyboard's geometry in window coordinates.
 */
-QRectF QInputPanel::keyboardRectangle()
+QRectF QInputPanel::keyboardRectangle() const
 {
-    Q_D(QInputPanel);
+    Q_D(const QInputPanel);
     QPlatformInputContext *ic = d->platformInputContext();
     if (ic)
         return ic->keyboardRect();
index 33e49f2..c33bd13 100644 (file)
@@ -82,7 +82,7 @@ public:
     QRectF cursorRectangle() const; // ### what if we have rotations for the item?
 
     // keyboard geometry in window coords
-    QRectF keyboardRectangle();
+    QRectF keyboardRectangle() const;
 
     enum Action {
         Click,