summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/queryschema.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:12:30 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:12:30 -0600
commit11191ef0b9908604d1d7aaca382b011ef22c454c (patch)
treed38f0ccd8bfcc9756f5cfc42fb2ad1dad351e6aa /kexi/kexidb/queryschema.cpp
parentc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (diff)
downloadkoffice-11191ef0b9908604d1d7aaca382b011ef22c454c.tar.gz
koffice-11191ef0b9908604d1d7aaca382b011ef22c454c.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kexi/kexidb/queryschema.cpp')
-rw-r--r--kexi/kexidb/queryschema.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/kexidb/queryschema.cpp b/kexi/kexidb/queryschema.cpp
index b77f76a3..cff98a31 100644
--- a/kexi/kexidb/queryschema.cpp
+++ b/kexi/kexidb/queryschema.cpp
@@ -53,7 +53,7 @@ TQString QueryColumnInfo::debugString() const
{
return field->name() +
( alias.isEmpty() ? TQString()
- : (TQString::tqfromLatin1(" AS ") + TQString(alias)) );
+ : (TQString::fromLatin1(" AS ") + TQString(alias)) );
}
//=======================================
@@ -816,7 +816,7 @@ TQString QuerySchema::debugString()
if (tablePos>=0) {
TQCString tAlias = tableAlias(tablePos);
if (!tAlias.isEmpty()) {
- dbg2 += (TQString::tqfromLatin1(" field \"") + FieldList::field(i)->name()
+ dbg2 += (TQString::fromLatin1(" field \"") + FieldList::field(i)->name()
+ "\" uses alias \"" + TQString(tAlias) + "\" of table \""
+ d->tables.at(tablePos)->name() + "\"\n");
}
@@ -1291,7 +1291,7 @@ void QuerySchema::computeFieldsExpanded()
// (the expression object will be owned by column info)
visibleColumn = new Field();
visibleColumn->setName(
- TQString::tqfromLatin1("[multiple_visible_fields_%1]")
+ TQString::fromLatin1("[multiple_visible_fields_%1]")
.tqarg( ++numberOfColumnsWithMultipleVisibleFields ));
visibleColumn->setExpression(
new ConstExpr(CHARACTER_STRING_LITERAL, TQVariant()/*not important*/));
@@ -1310,7 +1310,7 @@ void QuerySchema::computeFieldsExpanded()
if (!table( visibleField->table()->name() )) {
}
if (!sql.isEmpty())
- sql += TQString::tqfromLatin1(", ");
+ sql += TQString::fromLatin1(", ");
sql += (escapeIdentifier(visibleField->table()->name(), drvEscaping) + "."
+ escapeIdentifier(visibleField->name(), drvEscaping));
}*/
@@ -1351,7 +1351,7 @@ void QuerySchema::computeFieldsExpanded()
// (the expression object will be owned by column info)
visibleColumn = new Field();
visibleColumn->setName(
- TQString::tqfromLatin1("[multiple_visible_fields_%1]")
+ TQString::fromLatin1("[multiple_visible_fields_%1]")
.tqarg( ++numberOfColumnsWithMultipleVisibleFields ));
visibleColumn->setExpression(
new ConstExpr(CHARACTER_STRING_LITERAL, TQVariant()/*not important*/));
@@ -1370,7 +1370,7 @@ void QuerySchema::computeFieldsExpanded()
if (!table( visibleField->table()->name() )) {
}
if (!sql.isEmpty())
- sql += TQString::tqfromLatin1(", ");
+ sql += TQString::fromLatin1(", ");
sql += (escapeIdentifier(visibleField->table()->name(), drvEscaping) + "."
+ escapeIdentifier(visibleField->name(), drvEscaping));
}*/
@@ -1508,7 +1508,7 @@ void QuerySchema::computeFieldsExpanded()
ci->setIndexForVisibleLookupValue( d->fieldsExpanded->size() + *index );
}
else {
- const TQString key( TQString::tqfromLatin1("[multiple_visible_fields_%1]_%2.%3")
+ const TQString key( TQString::fromLatin1("[multiple_visible_fields_%1]_%2.%3")
.tqarg( ++numberOfColumnsWithMultipleVisibleFields )
.tqarg(ci->field->table()->name()).tqarg(ci->field->name()) );
uint *index = lookup_dict[ key ];
@@ -1542,7 +1542,7 @@ void QuerySchema::computeFieldsExpanded()
ci->setIndexForVisibleLookupValue( d->fieldsExpanded->size() + *index );
}
else {
- const TQString key( TQString::tqfromLatin1("[multiple_visible_fields_%1]_%2.%3")
+ const TQString key( TQString::fromLatin1("[multiple_visible_fields_%1]_%2.%3")
.tqarg( ++numberOfColumnsWithMultipleVisibleFields )
.tqarg(ci->field->table()->name()).tqarg(ci->field->name()) );
uint *index = lookup_dict[ key ];