示例#1
0
QString QDomDocumentFragmentProto::toString() const
{
  QDomDocumentFragment *item = qscriptvalue_cast<QDomDocumentFragment*>(thisObject());
  if (item)
    return QString("[QDomDocumentFragment(nodeType=%1)]").arg(item->nodeType());
  return QString("[QDomDocumentFragment(unknown)]");
}
示例#2
0
int QDomDocumentFragmentProto:: nodeType() const
{
  QDomDocumentFragment *item = qscriptvalue_cast<QDomDocumentFragment*>(thisObject());
  if (item)
    return item->nodeType();
  return 0;
}