diff options
author | Jocelyn Turcotte <[email protected]> | 2013-09-09 15:55:04 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-12 16:54:03 +0200 |
commit | 526f111b059e18414e3a03c7f9a2b8c2ed65be7a (patch) | |
tree | d4006eb9b88fae752345be33a8b74889908d9562 /src/quick/items/qquickitemview_p.h | |
parent | 48f278f723cc1527b1e785c416192083e67dc292 (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 <[email protected]>
Diffstat (limited to 'src/quick/items/qquickitemview_p.h')
-rw-r--r-- | src/quick/items/qquickitemview_p.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/quick/items/qquickitemview_p.h b/src/quick/items/qquickitemview_p.h index d7812bcdad..2e7de96c14 100644 --- a/src/quick/items/qquickitemview_p.h +++ b/src/quick/items/qquickitemview_p.h @@ -209,7 +209,7 @@ public: virtual qreal originX() const; virtual qreal originY() const; -signals: +Q_SIGNALS: void modelChanged(); void delegateChanged(); void countChanged(); @@ -254,7 +254,7 @@ protected: virtual qreal minXExtent() const; virtual qreal maxXExtent() const; -protected slots: +protected Q_SLOTS: void destroyRemoved(); void createdItem(int index, QObject *item); virtual void initItem(int index, QObject *item); @@ -288,7 +288,7 @@ public: void setIsCurrentItem(bool c) { if (m_isCurrent != c) { m_isCurrent = c; - emit currentItemChanged(); + Q_EMIT currentItemChanged(); } } @@ -296,7 +296,7 @@ public: void setDelayRemove(bool delay) { if (m_delayRemove != delay) { m_delayRemove = delay; - emit delayRemoveChanged(); + Q_EMIT delayRemoveChanged(); } } @@ -304,7 +304,7 @@ public: void setSection(const QString §) { if (m_section != sect) { m_section = sect; - emit sectionChanged(); + Q_EMIT sectionChanged(); } } @@ -312,7 +312,7 @@ public: void setPrevSection(const QString §) { if (m_prevSection != sect) { m_prevSection = sect; - emit prevSectionChanged(); + Q_EMIT prevSectionChanged(); } } @@ -320,14 +320,14 @@ public: void setNextSection(const QString §) { if (m_nextSection != sect) { m_nextSection = sect; - emit nextSectionChanged(); + Q_EMIT nextSectionChanged(); } } - void emitAdd() { emit add(); } - void emitRemove() { emit remove(); } + void emitAdd() { Q_EMIT add(); } + void emitRemove() { Q_EMIT remove(); } -signals: +Q_SIGNALS: void currentItemChanged(); void delayRemoveChanged(); |