diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-08-23 20:03:43 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-24 12:27:43 +0200 |
commit | 1253db60ee2586b1546cbaeeacb7b8c3d77ab255 (patch) | |
tree | 3566db4d1038b6b628fd73fba21ce4251385da56 /src/declarative/particles/qsgcustomemitter_p.h | |
parent | b9a16a039692327a9f6975456667b5bd36afb4c8 (diff) |
Absorb CustomEmitter/Affector
The signal is now on the Emitter/Affector base type, but only
emitted if connected to (to save creating the v8 object)
Change-Id: Ib5522e0f760caa17a6ad731b2dfbce9994a7664e
Reviewed-on: http://codereview.qt.nokia.com/3393
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/particles/qsgcustomemitter_p.h')
-rw-r--r-- | src/declarative/particles/qsgcustomemitter_p.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/declarative/particles/qsgcustomemitter_p.h b/src/declarative/particles/qsgcustomemitter_p.h deleted file mode 100644 index 4d22490fb6..0000000000 --- a/src/declarative/particles/qsgcustomemitter_p.h +++ /dev/null @@ -1,76 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Declarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QSGCUSTOMEMITTER_H -#define QSGCUSTOMEMITTER_H -#include "qsgparticleemitter_p.h" -#include <private/qv8engine_p.h> - -QT_BEGIN_HEADER - -QT_BEGIN_NAMESPACE - -QT_MODULE(Declarative) - -class QSGCustomEmitter : public QSGParticleEmitter -{ - Q_OBJECT -public: - explicit QSGCustomEmitter(QSGItem* parent=0); - virtual ~QSGCustomEmitter(){} - virtual void emitWindow(int timeStamp); - virtual void reset(); -Q_SIGNALS: - void emitParticle(QDeclarativeV8Handle particle); -private: - int m_particle_count; - bool m_reset_last; - qreal m_last_timestamp; - qreal m_last_emission; - - QPointF m_last_emitter; - QPointF m_last_last_emitter; - QPointF m_last_last_last_emitter; -}; - -QT_END_NAMESPACE -QT_END_HEADER -#endif // QSGCUSTOMEMITTER_H |