aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickpincharea_p.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-09-09 15:55:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-12 16:54:03 +0200
commit526f111b059e18414e3a03c7f9a2b8c2ed65be7a (patch)
treed4006eb9b88fae752345be33a8b74889908d9562 /src/quick/items/qquickpincharea_p.h
parent48f278f723cc1527b1e785c416192083e67dc292 (diff)
Allow QtQuick private headers to be used with QT_NO_KEYWORDS.
This is necessary for the QtWebEngine module. This also adds an empty nokeywords test using the same mechanism as qtbase/tests/auto/tools/moc/no-keywords.h to find conflicts at compile time. Change-Id: I9df541720797dd61f078178c2af68ead18ff8bfe Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/quick/items/qquickpincharea_p.h')
-rw-r--r--src/quick/items/qquickpincharea_p.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/quick/items/qquickpincharea_p.h b/src/quick/items/qquickpincharea_p.h
index 60c2dc742e..c991145fc7 100644
--- a/src/quick/items/qquickpincharea_p.h
+++ b/src/quick/items/qquickpincharea_p.h
@@ -71,13 +71,13 @@ public:
if (target == m_target)
return;
m_target = target;
- emit targetChanged();
+ Q_EMIT targetChanged();
}
void resetTarget() {
if (!m_target)
return;
m_target = 0;
- emit targetChanged();
+ Q_EMIT targetChanged();
}
qreal minimumScale() const { return m_minScale; }
@@ -85,14 +85,14 @@ public:
if (s == m_minScale)
return;
m_minScale = s;
- emit minimumScaleChanged();
+ Q_EMIT minimumScaleChanged();
}
qreal maximumScale() const { return m_maxScale; }
void setMaximumScale(qreal s) {
if (s == m_maxScale)
return;
m_maxScale = s;
- emit maximumScaleChanged();
+ Q_EMIT maximumScaleChanged();
}
qreal minimumRotation() const { return m_minRotation; }
@@ -100,14 +100,14 @@ public:
if (r == m_minRotation)
return;
m_minRotation = r;
- emit minimumRotationChanged();
+ Q_EMIT minimumRotationChanged();
}
qreal maximumRotation() const { return m_maxRotation; }
void setMaximumRotation(qreal r) {
if (r == m_maxRotation)
return;
m_maxRotation = r;
- emit maximumRotationChanged();
+ Q_EMIT maximumRotationChanged();
}
enum Axis { NoDrag=0x00, XAxis=0x01, YAxis=0x02, XAndYAxis=0x03, XandYAxis=XAndYAxis };
@@ -116,7 +116,7 @@ public:
if (a == m_axis)
return;
m_axis = a;
- emit dragAxisChanged();
+ Q_EMIT dragAxisChanged();
}
qreal xmin() const { return m_xmin; }
@@ -124,28 +124,28 @@ public:
if (x == m_xmin)
return;
m_xmin = x;
- emit minimumXChanged();
+ Q_EMIT minimumXChanged();
}
qreal xmax() const { return m_xmax; }
void setXmax(qreal x) {
if (x == m_xmax)
return;
m_xmax = x;
- emit maximumXChanged();
+ Q_EMIT maximumXChanged();
}
qreal ymin() const { return m_ymin; }
void setYmin(qreal y) {
if (y == m_ymin)
return;
m_ymin = y;
- emit minimumYChanged();
+ Q_EMIT minimumYChanged();
}
qreal ymax() const { return m_ymax; }
void setYmax(qreal y) {
if (y == m_ymax)
return;
m_ymax = y;
- emit maximumYChanged();
+ Q_EMIT maximumYChanged();
}
bool active() const { return m_active; }
@@ -153,10 +153,10 @@ public:
if (a == m_active)
return;
m_active = a;
- emit activeChanged();
+ Q_EMIT activeChanged();
}
-signals:
+Q_SIGNALS:
void targetChanged();
void minimumScaleChanged();
void maximumScaleChanged();
@@ -283,7 +283,7 @@ protected:
const QRectF &oldGeometry);
virtual void itemChange(ItemChange change, const ItemChangeData& value);
-private slots:
+private Q_SLOTS:
void setTouchEventsEnabledForWindow(QWindow *window);
private: