Fix constness of QInputPanel::keyboardRectangle()

Change-Id: I13552ed0c357b19486f389a8fbf2c338652437c9
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
Stephen Kelly 2012-01-08 22:19:36 +01:00 committed by Qt by Nokia
parent ab7c7b66ec
commit 90a7e6953d
2 changed files with 3 additions and 3 deletions

View File

@ -159,9 +159,9 @@ QRectF QInputPanel::cursorRectangle() const
\property QInputPanel::keyboardRectangle \property QInputPanel::keyboardRectangle
\brief Virtual keyboard's geometry in window coordinates. \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(); QPlatformInputContext *ic = d->platformInputContext();
if (ic) if (ic)
return ic->keyboardRect(); return ic->keyboardRect();

View File

@ -82,7 +82,7 @@ public:
QRectF cursorRectangle() const; // ### what if we have rotations for the item? QRectF cursorRectangle() const; // ### what if we have rotations for the item?
// keyboard geometry in window coords // keyboard geometry in window coords
QRectF keyboardRectangle(); QRectF keyboardRectangle() const;
enum Action { enum Action {
Click, Click,