~stolowski/unity-2d/fix-912777

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/inputshaperectangle.cpp

  • Committer: Tarmac
  • Author(s): Albert Astals
  • Date: 2012-02-23 17:22:22 UTC
  • mfrom: (931.1.1 unity-2d_qrectf_for_qml)
  • Revision ID: tarmac-20120223172222-njwl30n9xoesnj7u
Change QRect to QRectF and QPoint to QPointF

It is what Qt.rect and Qt.point in Qml return so keep in line with it
. Fixes: . Approved by Michał Sawicz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    Q_EMIT shapeChanged();
60
60
}
61
61
 
62
 
QRect InputShapeRectangle::rectangle() const
 
62
QRectF InputShapeRectangle::rectangle() const
63
63
{
64
64
    return m_rectangle;
65
65
}
66
66
 
67
 
void InputShapeRectangle::setRectangle(QRect rectangle)
 
67
void InputShapeRectangle::setRectangle(QRectF rectangle)
68
68
{
69
69
    if (rectangle != m_rectangle) {
70
70
        m_rectangle = rectangle;