diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/template.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-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/template.cpp')
-rw-r--r-- | umbrello/umbrello/template.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/umbrello/umbrello/template.cpp b/umbrello/umbrello/template.cpp index 12d08fab..f02f4426 100644 --- a/umbrello/umbrello/template.cpp +++ b/umbrello/umbrello/template.cpp @@ -13,7 +13,7 @@ #include "template.h" // qt/kde includes -#include <qregexp.h> +#include <tqregexp.h> #include <kdebug.h> // app includes @@ -21,8 +21,8 @@ #include "umldoc.h" #include "dialogs/umltemplatedialog.h" -UMLTemplate::UMLTemplate(const UMLObject *parent, const QString& name, - Uml::IDType id, const QString& type) +UMLTemplate::UMLTemplate(const UMLObject *parent, const TQString& name, + Uml::IDType id, const TQString& type) : UMLClassifierListItem( parent, name, id ) { setTypeName( type ); m_BaseType = Uml::ot_Template; @@ -35,7 +35,7 @@ UMLTemplate::UMLTemplate(const UMLObject *parent) UMLTemplate::~UMLTemplate() {} -QString UMLTemplate::toString(Uml::Signature_Type /*sig = st_NoSig*/) { +TQString UMLTemplate::toString(Uml::Signature_Type /*sig = st_NoSig*/) { if (m_pSecondary == NULL || m_pSecondary->getName() == "class") { return getName(); } else { @@ -43,7 +43,7 @@ QString UMLTemplate::toString(Uml::Signature_Type /*sig = st_NoSig*/) { } } -QString UMLTemplate::getTypeName() { +TQString UMLTemplate::getTypeName() { if (m_pSecondary == NULL) return "class"; return m_pSecondary->getName(); @@ -76,20 +76,20 @@ UMLObject* UMLTemplate::clone() const } -void UMLTemplate::saveToXMI(QDomDocument& qDoc, QDomElement& qElement) { +void UMLTemplate::saveToXMI(TQDomDocument& qDoc, TQDomElement& qElement) { //FIXME: uml13.dtd compliance - QDomElement attributeElement = UMLObject::save("UML:TemplateParameter", qDoc); + TQDomElement attributeElement = UMLObject::save("UML:TemplateParameter", qDoc); if (m_pSecondary) attributeElement.setAttribute("type", ID2STR(m_pSecondary->getID())); qElement.appendChild(attributeElement); } -bool UMLTemplate::load(QDomElement& element) { +bool UMLTemplate::load(TQDomElement& element) { m_SecondaryId = element.attribute("type", ""); return true; } -bool UMLTemplate::showPropertiesDialog(QWidget* parent) { +bool UMLTemplate::showPropertiesDialog(TQWidget* parent) { UMLTemplateDialog dialog(parent, this); return dialog.exec(); } |