QXmlNodeModelIndex Class Reference |
Constant | Value | Description |
---|---|---|
QXmlNodeModelIndex::Precedes | -1 | Signifies the \<\< operator. Test whether the first operand precedes the second in the document. |
QXmlNodeModelIndex::Follows | 1 | Signifies the \>\> operator. Test whether the first operand follows the second in the document. |
QXmlNodeModelIndex::Is | 0 | Signifies the is operator. Test whether two nodes have the same node identity. |
Typedef for QList<QXmlNodeModelIndex>.
Identifies a kind of node.
Constant | Value | Description |
---|---|---|
QXmlNodeModelIndex::Attribute | 1 | Identifies an attribute node |
QXmlNodeModelIndex::Text | 64 | Identifies a text node |
QXmlNodeModelIndex::Comment | 2 | Identifies a comment node |
QXmlNodeModelIndex::Document | 4 | Identifies a document node |
QXmlNodeModelIndex::Element | 8 | Identifies an element node |
QXmlNodeModelIndex::Namespace | 16 | Identifies a namespace node |
QXmlNodeModelIndex::ProcessingInstruction | 32 | Identifies a processing instruction. |
Note that the optional XML declaration at very beginning of the XML document is not a processing instruction
See also QAbstractXmlNodeModel::kind().
Default constructor. Creates an item that is null.
See also isNull().
Standard copy constructor. Creates a QXmlNodeModelIndex instance that is a copy of other.
Returns the second data value. The node index holds two data values. data() returns the first one.
See also data().
Returns the first data value. The node index holds two data values. additionalData() returns the second one.
See also additionalData().
Returns the first data value as a void* pointer.
See also additionalData().
Returns true if this QXmlNodeModelIndex is a default constructed value, otherwise false.
A null QXmlNodeModelIndex doesn't represent any node and cannot be used in conjunction with QAbstractXmlNodeModel.
Returns the QAbstractXmlNodeModel that this node index refers to. QXmlNodeModelIndex does not own QAbstractXmlNodeModel and does not keep track of its lifetime, so this pointer will dangle if the QAbstractXmlNodeModel is deallocated first.
There is no setter for the node model because instances of QXmlNodeModelIndex instances are only created with QAbstractXmlNodeModel::createIndex().
Returns true if other is the same node as this.
Returns true if this node is the same as other. This operator does not compare values, children, or names of nodes. It compares node identities, i.e., whether two nodes are from the same document and are found at the exact same place.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com