diff options
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/customitems/painteditem/textballoon.cpp | 2 | ||||
-rw-r--r-- | examples/quick/customitems/painteditem/textballoon.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/customitems/painteditem/textballoon.cpp b/examples/quick/customitems/painteditem/textballoon.cpp index de34d67103..d3d4246eb2 100644 --- a/examples/quick/customitems/painteditem/textballoon.cpp +++ b/examples/quick/customitems/painteditem/textballoon.cpp @@ -92,7 +92,7 @@ void TextBalloon::paint(QPainter *painter) } //! [1] -bool TextBalloon::isRightAligned() +bool TextBalloon::isRightAligned() const { return this->rightAligned; } diff --git a/examples/quick/customitems/painteditem/textballoon.h b/examples/quick/customitems/painteditem/textballoon.h index eb72804602..129b0f7ee1 100644 --- a/examples/quick/customitems/painteditem/textballoon.h +++ b/examples/quick/customitems/painteditem/textballoon.h @@ -64,7 +64,7 @@ class TextBalloon : public QQuickPaintedItem TextBalloon(QQuickItem *parent = 0); void paint(QPainter *painter); - bool isRightAligned(); + bool isRightAligned() const; void setRightAligned(bool rightAligned); private: |