diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-30 08:30:27 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-30 08:30:27 (GMT) |
commit | 9170d122291036d930aa5afb79280922ed1d586f (patch) | |
tree | 8318a409d280e651084c79ac75985b9f024a7c2b /src/declarative/util | |
parent | 3a20331b59434141935a78b768a628656c0452a7 (diff) | |
download | Qt-9170d122291036d930aa5afb79280922ed1d586f.zip Qt-9170d122291036d930aa5afb79280922ed1d586f.tar.gz Qt-9170d122291036d930aa5afb79280922ed1d586f.tar.bz2 |
Cleanup
Diffstat (limited to 'src/declarative/util')
-rw-r--r-- | src/declarative/util/qfxglobal.h | 94 | ||||
-rw-r--r-- | src/declarative/util/qmlanimation.cpp | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlbind_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmllistmodel_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlpropertymap_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlspringfollow_p.h | 6 | ||||
-rw-r--r-- | src/declarative/util/qmlstate.cpp | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlstate_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlstategroup.cpp | 1 | ||||
-rw-r--r-- | src/declarative/util/qmltimeline_p_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmltimer_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmltransition_p.h | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlview.cpp | 1 | ||||
-rw-r--r-- | src/declarative/util/qmlview.h | 1 | ||||
-rw-r--r-- | src/declarative/util/util.pri | 1 |
15 files changed, 7 insertions, 106 deletions
diff --git a/src/declarative/util/qfxglobal.h b/src/declarative/util/qfxglobal.h deleted file mode 100644 index eb57963..0000000 --- a/src/declarative/util/qfxglobal.h +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, 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. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QFXGLOBAL_H -#define QFXGLOBAL_H - -#include <QtCore/qglobal.h> -#include <QtCore/QObject> - -QT_BEGIN_HEADER - -QT_BEGIN_NAMESPACE - -QT_MODULE(Declarative) - -#define QFX_CONFIGURATION_SOFTWARE -#define QFX_RENDER_QPAINTER - -#define DEFINE_BOOL_CONFIG_OPTION(name, var) \ - static bool name() \ - { \ - static enum { Yes, No, Unknown } status = Unknown; \ - if (status == Unknown) { \ - QByteArray v = qgetenv(#var); \ - bool value = !v.isEmpty() && v != "0" && v != "false"; \ - if (value) status = Yes; \ - else status = No; \ - } \ - return status == Yes; \ - } - -struct QmlGraphics_DerivedObject : public QObject -{ - void setParent_noEvent(QObject *parent) { - bool sce = d_ptr->sendChildEvents; - d_ptr->sendChildEvents = false; - setParent(parent); - d_ptr->sendChildEvents = sce; - } -}; - -/*! - Makes the \a object a child of \a parent. Note that when using this method, - neither \a parent nor the object's previous parent (if it had one) will - receive ChildRemoved or ChildAdded events. -*/ -inline void QmlGraphics_setParent_noEvent(QObject *object, QObject *parent) -{ - static_cast<QmlGraphics_DerivedObject *>(object)->setParent_noEvent(parent); -} - -QT_END_NAMESPACE - -QT_END_HEADER - -#endif // QFXGLOBAL_H diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp index 47d7146..180864c 100644 --- a/src/declarative/util/qmlanimation.cpp +++ b/src/declarative/util/qmlanimation.cpp @@ -58,6 +58,7 @@ #include <private/qmlstateoperations_p.h> #include <private/qmlstringconverters_p.h> #include <private/qvariantanimation_p.h> +#include <private/qmlglobal_p.h> QT_BEGIN_NAMESPACE diff --git a/src/declarative/util/qmlbind_p.h b/src/declarative/util/qmlbind_p.h index a4ba81d..c3118a3 100644 --- a/src/declarative/util/qmlbind_p.h +++ b/src/declarative/util/qmlbind_p.h @@ -42,7 +42,6 @@ #ifndef QMLBIND_H #define QMLBIND_H -#include <QtDeclarative/qfxglobal.h> #include <QtCore/qobject.h> #include <QtDeclarative/qml.h> diff --git a/src/declarative/util/qmllistmodel_p.h b/src/declarative/util/qmllistmodel_p.h index ff6521c..8676024 100644 --- a/src/declarative/util/qmllistmodel_p.h +++ b/src/declarative/util/qmllistmodel_p.h @@ -47,7 +47,6 @@ #include <QtCore/QHash> #include <QtCore/QList> #include <QtCore/QVariant> -#include <QtDeclarative/qfxglobal.h> #include <QtDeclarative/qml.h> #include <private/qlistmodelinterface_p.h> #include <QtScript/qscriptvalue.h> diff --git a/src/declarative/util/qmlpropertymap_p.h b/src/declarative/util/qmlpropertymap_p.h index 0f641b2..bb397fe 100644 --- a/src/declarative/util/qmlpropertymap_p.h +++ b/src/declarative/util/qmlpropertymap_p.h @@ -42,7 +42,6 @@ #ifndef QMLPROPERTYMAP_H #define QMLPROPERTYMAP_H -#include <QtDeclarative/qfxglobal.h> #include <QtCore/QObject> #include <QtCore/QHash> #include <QtCore/QStringList> diff --git a/src/declarative/util/qmlspringfollow_p.h b/src/declarative/util/qmlspringfollow_p.h index cadb344..b81539a 100644 --- a/src/declarative/util/qmlspringfollow_p.h +++ b/src/declarative/util/qmlspringfollow_p.h @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#ifndef QMLFOLLOW_H -#define QMLFOLLOW_H +#ifndef QMLSMOOTHFOLLOW_H +#define QMLSMOOTHFOLLOW_H #include <QtDeclarative/qmlpropertyvaluesource.h> #include <QtDeclarative/qml.h> @@ -110,4 +110,4 @@ QML_DECLARE_TYPE(QmlSpringFollow) QT_END_HEADER -#endif // QFXFOLLOW_H +#endif // QMLSMOOTHFOLLOW_H diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp index a5978a5..ce4b540 100644 --- a/src/declarative/util/qmlstate.cpp +++ b/src/declarative/util/qmlstate.cpp @@ -48,6 +48,7 @@ #include "qmlanimation_p_p.h" #include "qmlstate_p.h" #include <QtCore/qdebug.h> +#include <private/qmlglobal_p.h> QT_BEGIN_NAMESPACE diff --git a/src/declarative/util/qmlstate_p.h b/src/declarative/util/qmlstate_p.h index 9d18390..92aef8c 100644 --- a/src/declarative/util/qmlstate_p.h +++ b/src/declarative/util/qmlstate_p.h @@ -44,7 +44,6 @@ #include <QtCore/qobject.h> #include <QtCore/QSequentialAnimationGroup> -#include <QtDeclarative/qfxglobal.h> #include <QtDeclarative/qml.h> QT_BEGIN_HEADER diff --git a/src/declarative/util/qmlstategroup.cpp b/src/declarative/util/qmlstategroup.cpp index cff25c3..f518ea5 100644 --- a/src/declarative/util/qmlstategroup.cpp +++ b/src/declarative/util/qmlstategroup.cpp @@ -44,6 +44,7 @@ #include "qmltransition_p.h" #include <QtDeclarative/qmlbinding.h> #include <QtCore/qdebug.h> +#include <private/qmlglobal_p.h> QT_BEGIN_NAMESPACE diff --git a/src/declarative/util/qmltimeline_p_p.h b/src/declarative/util/qmltimeline_p_p.h index f1e716c..09d46ba 100644 --- a/src/declarative/util/qmltimeline_p_p.h +++ b/src/declarative/util/qmltimeline_p_p.h @@ -55,7 +55,6 @@ #include <QtCore/QObject> #include <QtCore/QAbstractAnimation> -#include <QtDeclarative/qfxglobal.h> QT_BEGIN_NAMESPACE diff --git a/src/declarative/util/qmltimer_p.h b/src/declarative/util/qmltimer_p.h index 7d40d5a..f3037e0 100644 --- a/src/declarative/util/qmltimer_p.h +++ b/src/declarative/util/qmltimer_p.h @@ -42,7 +42,6 @@ #ifndef QMLTIMER_H #define QMLTIMER_H -#include <QtDeclarative/qfxglobal.h> #include <QtCore/qobject.h> #include <QtCore/qabstractanimation.h> #include <QtDeclarative/qml.h> diff --git a/src/declarative/util/qmltransition_p.h b/src/declarative/util/qmltransition_p.h index de1d3e8..a7c709f 100644 --- a/src/declarative/util/qmltransition_p.h +++ b/src/declarative/util/qmltransition_p.h @@ -43,7 +43,6 @@ #define QMLTRANSITION_H #include <QtCore/qobject.h> -#include <QtDeclarative/qfxglobal.h> #include <private/qmlstate_p.h> #include <QtDeclarative/qml.h> diff --git a/src/declarative/util/qmlview.cpp b/src/declarative/util/qmlview.cpp index 27a4bba..0a2cc75 100644 --- a/src/declarative/util/qmlview.cpp +++ b/src/declarative/util/qmlview.cpp @@ -62,6 +62,7 @@ #include <private/qmldebug_p.h> #include <private/qmldebugservice_p.h> #include <QtCore/qabstractanimation.h> +#include <private/qmlglobal_p.h> QT_BEGIN_NAMESPACE diff --git a/src/declarative/util/qmlview.h b/src/declarative/util/qmlview.h index 08c036d..08d69bc 100644 --- a/src/declarative/util/qmlview.h +++ b/src/declarative/util/qmlview.h @@ -46,7 +46,6 @@ #include <QtGui/qgraphicssceneevent.h> #include <QtGui/qgraphicsview.h> #include <QtGui/qwidget.h> -#include <QtDeclarative/qfxglobal.h> QT_BEGIN_HEADER diff --git a/src/declarative/util/util.pri b/src/declarative/util/util.pri index a60613e..87ccb58 100644 --- a/src/declarative/util/util.pri +++ b/src/declarative/util/util.pri @@ -25,7 +25,6 @@ SOURCES += \ HEADERS += \ util/qmlview.h \ util/qfxperf_p_p.h \ - util/qfxglobal.h \ util/qperformancelog_p_p.h \ util/qmlconnection_p.h \ util/qmlpackage_p.h \ |