mirror of
				https://github.com/JakubMelka/PDF4QT.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	XFA: value parsing
This commit is contained in:
		| @@ -1793,6 +1793,14 @@ QString XFACodeGenerator::generateSource() const | ||||
|                 stream << QString("    parseItem(element, \"%1\", myClass.%2);").arg(subnode.subnodeName, subnodeFieldName) << Qt::endl; | ||||
|             } | ||||
|  | ||||
|             // Node value | ||||
|             if (myClass.valueType) | ||||
|             { | ||||
|                 stream << Qt::endl; | ||||
|                 stream << "    // load node value" << Qt::endl; | ||||
|                 stream << QString("    parseValue(element, myClass.m_nodeValue);") << Qt::endl << Qt::endl; | ||||
|             } | ||||
|  | ||||
|             stream << "    return myClass;" << Qt::endl; | ||||
|             stream << "}" << Qt::endl; | ||||
|  | ||||
|   | ||||
| @@ -482,7 +482,6 @@ private: | ||||
|     { | ||||
|         QString className; | ||||
|         const Type* valueType = nullptr; | ||||
|         QString nodeValue; | ||||
|         std::vector<Attribute> attributes; | ||||
|         std::vector<Subnode> subnodes; | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user