diff options
Diffstat (limited to 'kexi/kexidb/queryschema.cpp')
-rw-r--r-- | kexi/kexidb/queryschema.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kexi/kexidb/queryschema.cpp b/kexi/kexidb/queryschema.cpp index 47e5d95c..b77f76a3 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::fromLatin1(" AS ") + TQString(alias)) ); + : (TQString::tqfromLatin1(" AS ") + TQString(alias)) ); } //======================================= @@ -402,11 +402,11 @@ TQString OrderByColumn::debugString() const if (m_column) { if (m_pos>-1) return TQString("COLUMN_AT_POSITION_%1(%2, %3)") - .arg(m_pos+1).arg(m_column->debugString()).arg(orderString); + .tqarg(m_pos+1).tqarg(m_column->debugString()).tqarg(orderString); else - return TQString("COLUMN(%1, %2)").arg(m_column->debugString()).arg(orderString); + return TQString("COLUMN(%1, %2)").tqarg(m_column->debugString()).tqarg(orderString); } - return m_field ? TQString("FIELD(%1, %2)").arg(m_field->debugString()).arg(orderString) + return m_field ? TQString("FIELD(%1, %2)").tqarg(m_field->debugString()).tqarg(orderString) : TQString("NONE"); } @@ -801,7 +801,7 @@ TQString QuerySchema::debugString() else { dbg1 = "<NONE>\n"; } - dbg1.prepend( TQString("(%1):\n").arg(fieldsExpandedCount) ); + dbg1.prepend( TQString("(%1):\n").tqarg(fieldsExpandedCount) ); dbg += dbg1; //it's safer to delete fieldsExpanded for now @@ -816,7 +816,7 @@ TQString QuerySchema::debugString() if (tablePos>=0) { TQCString tAlias = tableAlias(tablePos); if (!tAlias.isEmpty()) { - dbg2 += (TQString::fromLatin1(" field \"") + FieldList::field(i)->name() + dbg2 += (TQString::tqfromLatin1(" field \"") + FieldList::field(i)->name() + "\" uses alias \"" + TQString(tAlias) + "\" of table \"" + d->tables.at(tablePos)->name() + "\"\n"); } @@ -847,7 +847,7 @@ TQString QuerySchema::debugString() for (int i=0; it.current(); ++it, i++) { TQCString *alias = d->columnAlias(i); if (alias) - aliases += (TQString("field #%1: ").arg(i) + aliases += (TQString("field #%1: ").tqarg(i) + (it.current()->name().isEmpty() ? "<noname>" : it.current()->name()) + " -> " + (const char*)*alias + "\n"); } @@ -862,7 +862,7 @@ TQString QuerySchema::debugString() for (int i=0; t_it.current(); ++t_it, i++) { TQCString *alias = d->tableAliases[i]; if (alias) - aliases += (TQString("table #%1: ").arg(i) + aliases += (TQString("table #%1: ").tqarg(i) + (t_it.current()->name().isEmpty() ? "<noname>" : t_it.current()->name()) + " -> " + (const char*)*alias + "\n"); } @@ -872,7 +872,7 @@ TQString QuerySchema::debugString() if (!where.isEmpty()) dbg += (TQString("\n-WHERE EXPRESSION:\n") + where); if (!orderByColumnList().isEmpty()) - dbg += (TQString("\n-ORDER BY (%1):\n").arg(orderByColumnList().count()) + dbg += (TQString("\n-ORDER BY (%1):\n").tqarg(orderByColumnList().count()) + orderByColumnList().debugString()); return dbg; } @@ -1291,8 +1291,8 @@ void QuerySchema::computeFieldsExpanded() // (the expression object will be owned by column info) visibleColumn = new Field(); visibleColumn->setName( - TQString::fromLatin1("[multiple_visible_fields_%1]") - .arg( ++numberOfColumnsWithMultipleVisibleFields )); + TQString::tqfromLatin1("[multiple_visible_fields_%1]") + .tqarg( ++numberOfColumnsWithMultipleVisibleFields )); visibleColumn->setExpression( new ConstExpr(CHARACTER_STRING_LITERAL, TQVariant()/*not important*/)); if (!d->ownedVisibleColumns) { @@ -1310,7 +1310,7 @@ void QuerySchema::computeFieldsExpanded() if (!table( visibleField->table()->name() )) { } if (!sql.isEmpty()) - sql += TQString::fromLatin1(", "); + sql += TQString::tqfromLatin1(", "); sql += (escapeIdentifier(visibleField->table()->name(), drvEscaping) + "." + escapeIdentifier(visibleField->name(), drvEscaping)); }*/ @@ -1351,8 +1351,8 @@ void QuerySchema::computeFieldsExpanded() // (the expression object will be owned by column info) visibleColumn = new Field(); visibleColumn->setName( - TQString::fromLatin1("[multiple_visible_fields_%1]") - .arg( ++numberOfColumnsWithMultipleVisibleFields )); + TQString::tqfromLatin1("[multiple_visible_fields_%1]") + .tqarg( ++numberOfColumnsWithMultipleVisibleFields )); visibleColumn->setExpression( new ConstExpr(CHARACTER_STRING_LITERAL, TQVariant()/*not important*/)); if (!d->ownedVisibleColumns) { @@ -1370,7 +1370,7 @@ void QuerySchema::computeFieldsExpanded() if (!table( visibleField->table()->name() )) { } if (!sql.isEmpty()) - sql += TQString::fromLatin1(", "); + sql += TQString::tqfromLatin1(", "); sql += (escapeIdentifier(visibleField->table()->name(), drvEscaping) + "." + escapeIdentifier(visibleField->name(), drvEscaping)); }*/ @@ -1508,9 +1508,9 @@ void QuerySchema::computeFieldsExpanded() ci->setIndexForVisibleLookupValue( d->fieldsExpanded->size() + *index ); } else { - const TQString key( TQString::fromLatin1("[multiple_visible_fields_%1]_%2.%3") - .arg( ++numberOfColumnsWithMultipleVisibleFields ) - .arg(ci->field->table()->name()).arg(ci->field->name()) ); + const TQString key( TQString::tqfromLatin1("[multiple_visible_fields_%1]_%2.%3") + .tqarg( ++numberOfColumnsWithMultipleVisibleFields ) + .tqarg(ci->field->table()->name()).tqarg(ci->field->name()) ); uint *index = lookup_dict[ key ]; if (index) ci->setIndexForVisibleLookupValue( d->fieldsExpanded->size() + *index ); @@ -1542,9 +1542,9 @@ void QuerySchema::computeFieldsExpanded() ci->setIndexForVisibleLookupValue( d->fieldsExpanded->size() + *index ); } else { - const TQString key( TQString::fromLatin1("[multiple_visible_fields_%1]_%2.%3") - .arg( ++numberOfColumnsWithMultipleVisibleFields ) - .arg(ci->field->table()->name()).arg(ci->field->name()) ); + const TQString key( TQString::tqfromLatin1("[multiple_visible_fields_%1]_%2.%3") + .tqarg( ++numberOfColumnsWithMultipleVisibleFields ) + .tqarg(ci->field->table()->name()).tqarg(ci->field->name()) ); uint *index = lookup_dict[ key ]; if (index) ci->setIndexForVisibleLookupValue( d->fieldsExpanded->size() + *index ); |