4#ifndef QV8DOMERRORS_P_H 
    5#define QV8DOMERRORS_P_H 
   18#include <QtCore/private/qglobal_p.h> 
   23#define DOMEXCEPTION_INDEX_SIZE_ERR 1 
   24#define DOMEXCEPTION_DOMSTRING_SIZE_ERR 2 
   25#define DOMEXCEPTION_HIERARCHY_REQUEST_ERR 3 
   26#define DOMEXCEPTION_WRONG_DOCUMENT_ERR 4 
   27#define DOMEXCEPTION_INVALID_CHARACTER_ERR 5 
   28#define DOMEXCEPTION_NO_DATA_ALLOWED_ERR 6 
   29#define DOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR 7 
   30#define DOMEXCEPTION_NOT_FOUND_ERR 8 
   31#define DOMEXCEPTION_NOT_SUPPORTED_ERR 9 
   32#define DOMEXCEPTION_INUSE_ATTRIBUTE_ERR 10 
   33#define DOMEXCEPTION_INVALID_STATE_ERR 11 
   34#define DOMEXCEPTION_SYNTAX_ERR 12 
   35#define DOMEXCEPTION_INVALID_MODIFICATION_ERR 13 
   36#define DOMEXCEPTION_NAMESPACE_ERR 14 
   37#define DOMEXCEPTION_INVALID_ACCESS_ERR 15 
   38#define DOMEXCEPTION_VALIDATION_ERR 16 
   39#define DOMEXCEPTION_TYPE_MISMATCH_ERR 17 
   41#define THROW_DOM(error, string) { \ 
   42    QV4::ScopedValue v(scope, scope.engine->newString(QStringLiteral(string))); \ 
   43    QV4::ScopedObject ex(scope, scope.engine->newErrorObject(v)); \ 
   44    ex->put(QV4::ScopedString(scope, scope.engine->newIdentifier(QStringLiteral("code"))), QV4::ScopedValue(scope, QV4::Value::fromInt32(error))); \
 
   45    return scope.engine->throwError(ex); \
 
   49struct ExecutionEngine;
 
Combined button and popup list for selecting options.
 
\qmltype Particle \inqmlmodule QtQuick.Particles
 
void qt_add_domexceptions(QV4::ExecutionEngine *e)