diff options
author | Xiao YaoBing <[email protected]> | 2021-03-16 17:45:50 +0800 |
---|---|---|
committer | Xiao YaoBing <[email protected]> | 2021-03-17 10:21:02 +0800 |
commit | 073f3d23b2208bc4494e9e8d7af90f3ae865d811 (patch) | |
tree | ec9a00e0839c196ca6f4bbff615743c612de7419 /examples/quick/customitems | |
parent | 698bbb74f06f9566b3812e9123838fdc7b57c388 (diff) |
make isRightAligned() const and setNoiseSource() const reference
Guessing the const specifier was accidentally forgotten
Change-Id: I88aaacbd9f8562c8a0b800013bb596c166fae6d7
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'examples/quick/customitems')
-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: |