diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
commit | 99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch) | |
tree | eff34cf0762227f6baf2a93e8fef48d4bed2651c /umbrello/umbrello/codegenerators/sqlwriter.cpp | |
parent | 1c104292188541106338d4940b0f04beeb4301a0 (diff) | |
download | tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip |
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/codegenerators/sqlwriter.cpp')
-rw-r--r-- | umbrello/umbrello/codegenerators/sqlwriter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/umbrello/umbrello/codegenerators/sqlwriter.cpp b/umbrello/umbrello/codegenerators/sqlwriter.cpp index 8582ec93..d08ea1fe 100644 --- a/umbrello/umbrello/codegenerators/sqlwriter.cpp +++ b/umbrello/umbrello/codegenerators/sqlwriter.cpp @@ -30,12 +30,12 @@ #include "../association.h" #include "../attribute.h" -SQLWriter::SQLWriter() { +STQLWriter::STQLWriter() { } -SQLWriter::~SQLWriter() {} +STQLWriter::~STQLWriter() {} -void SQLWriter::writeClass(UMLClassifier *c) { +void STQLWriter::writeClass(UMLClassifier *c) { if(!c) { kDebug()<<"Cannot write class of NULL concept!" << endl; @@ -65,8 +65,8 @@ void SQLWriter::writeClass(UMLClassifier *c) { TQString str; str = getHeadingFile(".sql"); if(!str.isEmpty()) { - str.replace(TQRegExp("%filename%"),fileName); - str.replace(TQRegExp("%filepath%"),file.name()); + str.tqreplace(TQRegExp("%filename%"),fileName); + str.tqreplace(TQRegExp("%filepath%"),file.name()); sql<<str<<m_endl; } @@ -113,7 +113,7 @@ void SQLWriter::writeClass(UMLClassifier *c) { } -void SQLWriter::writeAttributes(UMLClassifier *c, TQTextStream &sql) { +void STQLWriter::writeAttributes(UMLClassifier *c, TQTextStream &sql) { UMLAttributeList atpub, atprot, atpriv, atimp; atpub.setAutoDelete(false); atprot.setAutoDelete(false); @@ -140,7 +140,7 @@ void SQLWriter::writeAttributes(UMLClassifier *c, TQTextStream &sql) { } // now print the attributes; they are sorted by there scope - // in front of the first attribute shouldn't be a , -> so we need to find + // in front of the first attribute shouldn't be a , -> so we need to tqfind // out, when the first attribute was added bool first = true; @@ -171,7 +171,7 @@ void SQLWriter::writeAttributes(UMLClassifier *c, TQTextStream &sql) { return; } -void SQLWriter::printAttributes(TQTextStream& sql, UMLAttributeList attributeList, bool first) { +void STQLWriter::printAttributes(TQTextStream& sql, UMLAttributeList attributeList, bool first) { TQString attrDoc = ""; UMLAttribute* at; @@ -211,11 +211,11 @@ void SQLWriter::printAttributes(TQTextStream& sql, UMLAttributeList attributeLis return; } -Uml::Programming_Language SQLWriter::getLanguage() { +Uml::Programming_Language STQLWriter::getLanguage() { return Uml::pl_SQL; } -TQStringList SQLWriter::defaultDatatypes() { +TQStringList STQLWriter::defaultDatatypes() { TQStringList l; l.append("varchar"); l.append("tinyint"); @@ -244,7 +244,7 @@ TQStringList SQLWriter::defaultDatatypes() { return l; } -const TQStringList SQLWriter::reservedKeywords() const { +const TQStringList STQLWriter::reservedKeywords() const { static TQStringList keywords; |