summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codeparameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codeparameter.cpp')
-rw-r--r--umbrello/umbrello/codeparameter.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/umbrello/umbrello/codeparameter.cpp b/umbrello/umbrello/codeparameter.cpp
index f2f429fa..5ee7345c 100644
--- a/umbrello/umbrello/codeparameter.cpp
+++ b/umbrello/umbrello/codeparameter.cpp
@@ -34,7 +34,7 @@
//
CodeParameter::CodeParameter ( ClassifierCodeDocument * parentDoc, UMLObject * parentObject )
- : QObject ( (QObject*) parentObject, "ACodeParam")
+ : TQObject ( (TQObject*) parentObject, "ACodeParam")
{
initFields( parentDoc, parentObject );
}
@@ -71,7 +71,7 @@ bool CodeParameter::getStatic ( ) {
* The name of this code parameter.
* @return the value
*/
-QString CodeParameter::getName ( ) const {
+TQString CodeParameter::getName ( ) const {
return m_parentObject->getName();
}
@@ -81,7 +81,7 @@ QString CodeParameter::getName ( ) const {
* an object)
* @return the value of type
*/
-QString CodeParameter::getTypeName ( ) {
+TQString CodeParameter::getTypeName ( ) {
UMLAttribute * at = (UMLAttribute*) m_parentObject;
return at->getTypeName();
}
@@ -100,7 +100,7 @@ Uml::Visibility CodeParameter::getVisibility ( ) const {
* The initial value of this code parameter
* @param new_var the new value of m_initialValue
*/
-void CodeParameter::setInitialValue ( const QString &new_var ) {
+void CodeParameter::setInitialValue ( const TQString &new_var ) {
m_initialValue = new_var;
}
@@ -109,7 +109,7 @@ void CodeParameter::setInitialValue ( const QString &new_var ) {
* The initial value of this code parameter
* @return the value of m_initialValue
*/
-QString CodeParameter::getInitialValue ( ) {
+TQString CodeParameter::getInitialValue ( ) {
return m_initialValue;
}
@@ -141,7 +141,7 @@ UMLObject * CodeParameter::getParentObject ( ) {
// need to get the ID of the parent object
// this is kind of broken for UMLRoles.
-QString CodeParameter::getID () {
+TQString CodeParameter::getID () {
UMLRole * role = dynamic_cast<UMLRole*>(m_parentObject);
if(role)
{
@@ -157,7 +157,7 @@ QString CodeParameter::getID () {
// Other methods
//
-void CodeParameter::setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement)
+void CodeParameter::setAttributesOnNode ( TQDomDocument & doc, TQDomElement & blockElement)
{
@@ -176,7 +176,7 @@ void CodeParameter::setAttributesOnNode ( QDomDocument & doc, QDomElement & bloc
blockElement.setAttribute("initialValue",getInitialValue());
// a comment which we will store in its own separate child node block
- QDomElement commElement = doc.createElement( "header" );
+ TQDomElement commElement = doc.createElement( "header" );
getComment()->saveToXMI(doc, commElement); // comment
blockElement.appendChild( commElement);
@@ -185,10 +185,10 @@ void CodeParameter::setAttributesOnNode ( QDomDocument & doc, QDomElement & bloc
/** set the class attributes of this object from
* the passed element node.
*/
-void CodeParameter::setAttributesFromNode ( QDomElement & root) {
+void CodeParameter::setAttributesFromNode ( TQDomElement & root) {
// set local attributes, parent object first
- QString idStr = root.attribute("parent_id","-1");
+ TQString idStr = root.attribute("parent_id","-1");
Uml::IDType id = STR2ID(idStr);
// always disconnect
@@ -238,14 +238,14 @@ void CodeParameter::setAttributesFromNode ( QDomElement & root) {
// load comment now
// by looking for our particular child element
- QDomNode node = root.firstChild();
- QDomElement element = node.toElement();
+ TQDomNode node = root.firstChild();
+ TQDomElement element = node.toElement();
bool gotComment = false;
while( !element.isNull() ) {
- QString tag = element.tagName();
+ TQString tag = element.tagName();
if( tag == "header" ) {
- QDomNode cnode = element.firstChild();
- QDomElement celem = cnode.toElement();
+ TQDomNode cnode = element.firstChild();
+ TQDomElement celem = cnode.toElement();
getComment()->loadFromXMI(celem);
gotComment = true;
break;
@@ -276,12 +276,12 @@ void CodeParameter::initFields ( ClassifierCodeDocument * doc, UMLObject * obj)
m_parentObject = obj;
m_parentDocument = doc;
- m_initialValue = QString("");
+ m_initialValue = TQString("");
m_comment = CodeGenFactory::newCodeComment(m_parentDocument);
m_comment->setText(getParentObject()->getDoc());
- connect(m_parentObject,SIGNAL(modified()),this,SLOT(syncToParent()));
+ connect(m_parentObject,TQT_SIGNAL(modified()),this,TQT_SLOT(syncToParent()));
}
#include "codeparameter.moc"