aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quick/customitems/painteditem/textballoon.cpp2
-rw-r--r--examples/quick/customitems/painteditem/textballoon.h2
-rw-r--r--src/particles/qquickturbulence_p.h4
3 files changed, 4 insertions, 4 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:
diff --git a/src/particles/qquickturbulence_p.h b/src/particles/qquickturbulence_p.h
index a4aef063de..c7a31bb8ae 100644
--- a/src/particles/qquickturbulence_p.h
+++ b/src/particles/qquickturbulence_p.h
@@ -83,7 +83,7 @@ Q_SIGNALS:
void strengthChanged(qreal arg);
- void noiseSourceChanged(QUrl arg);
+ void noiseSourceChanged(const QUrl &arg);
public Q_SLOTS:
@@ -95,7 +95,7 @@ public Q_SLOTS:
}
}
- void setNoiseSource(QUrl arg)
+ void setNoiseSource(const QUrl &arg)
{
if (m_noiseSource != arg) {
m_noiseSource = arg;