summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp b/umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp
index 7e702619..6a068113 100644
--- a/umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp
+++ b/umbrello/umbrello/codegenerators/xmlelementcodeblock.cpp
@@ -29,7 +29,7 @@
// Constructors/Destructors
//
-XMLElementCodeBlock::XMLElementCodeBlock ( CodeDocument * parentDoc, const QString & nodeName, const QString & comment)
+XMLElementCodeBlock::XMLElementCodeBlock ( CodeDocument * parentDoc, const TQString & nodeName, const TQString & comment)
: HierarchicalCodeBlock(parentDoc)
{
init(parentDoc, nodeName, comment);
@@ -44,8 +44,8 @@ XMLElementCodeBlock::~XMLElementCodeBlock ( ) { }
/**
* Save the XMI representation of this object
*/
-void XMLElementCodeBlock::saveToXMI ( QDomDocument & doc, QDomElement & root ) {
- QDomElement blockElement = doc.createElement( "xmlelementblock" );
+void XMLElementCodeBlock::saveToXMI ( TQDomDocument & doc, TQDomElement & root ) {
+ TQDomElement blockElement = doc.createElement( "xmlelementblock" );
setAttributesOnNode(doc, blockElement);
@@ -55,7 +55,7 @@ void XMLElementCodeBlock::saveToXMI ( QDomDocument & doc, QDomElement & root ) {
/**
* load params from the appropriate XMI element node.
*/
-void XMLElementCodeBlock::loadFromXMI ( QDomElement & root )
+void XMLElementCodeBlock::loadFromXMI ( TQDomElement & root )
{
setAttributesFromNode(root);
}
@@ -63,7 +63,7 @@ void XMLElementCodeBlock::loadFromXMI ( QDomElement & root )
/** set attributes of the node that represents this class
* in the XMI document.
*/
-void XMLElementCodeBlock::setAttributesOnNode ( QDomDocument & doc, QDomElement & docElement)
+void XMLElementCodeBlock::setAttributesOnNode ( TQDomDocument & doc, TQDomElement & docElement)
{
// superclass call
@@ -77,7 +77,7 @@ void XMLElementCodeBlock::setAttributesOnNode ( QDomDocument & doc, QDomElement
/** set the class attributes of this object from
* the passed element node.
*/
-void XMLElementCodeBlock::setAttributesFromNode ( QDomElement & root) {
+void XMLElementCodeBlock::setAttributesFromNode ( TQDomElement & root) {
// superclass call
HierarchicalCodeBlock::setAttributesFromNode(root);
@@ -90,11 +90,11 @@ void XMLElementCodeBlock::setAttributesFromNode ( QDomElement & root) {
// Accessor methods
//
-void XMLElementCodeBlock::setNodeName (const QString &name) {
+void XMLElementCodeBlock::setNodeName (const TQString &name) {
m_nodeName = name;
}
-QString XMLElementCodeBlock::getNodeName () {
+TQString XMLElementCodeBlock::getNodeName () {
return m_nodeName;
}
@@ -116,13 +116,13 @@ UMLAttributeList * XMLElementCodeBlock::getAttributeList() {
void XMLElementCodeBlock::updateContent ( )
{
- QString endLine = getNewLineEndingChars();
+ TQString endLine = getNewLineEndingChars();
- QString nodeName = getNodeName();
+ TQString nodeName = getNodeName();
// Now update START/ENDING Text
- QString startText = '<' + nodeName;
- QString endText = "";
+ TQString startText = '<' + nodeName;
+ TQString endText = "";
UMLAttributeList * alist = getAttributeList();
for (UMLAttribute *at = alist->first(); at; at=alist->next())
@@ -150,7 +150,7 @@ void XMLElementCodeBlock::updateContent ( )
}
-void XMLElementCodeBlock::init (CodeDocument *parentDoc, const QString &nodeName, const QString &comment)
+void XMLElementCodeBlock::init (CodeDocument *parentDoc, const TQString &nodeName, const TQString &comment)
{
setComment(new XMLCodeComment(parentDoc));