summaryrefslogtreecommitdiffstats
path: root/kexi/migration/keximigrate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/migration/keximigrate.cpp')
-rw-r--r--kexi/migration/keximigrate.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kexi/migration/keximigrate.cpp b/kexi/migration/keximigrate.cpp
index 7b4944f2..1c3295b6 100644
--- a/kexi/migration/keximigrate.cpp
+++ b/kexi/migration/keximigrate.cpp
@@ -74,7 +74,7 @@ bool KexiMigrate::checkIfDestinationDatabaseOverwritingNeedsAccepting(Kexi::Obje
if (!destDriver) {
result->setStatus(&drvManager,
i18n("Could not create database \"%1\".")
- .tqarg(m_migrateData->destination->databaseName()));
+ .arg(m_migrateData->destination->databaseName()));
return false;
}
@@ -124,7 +124,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (!destDriver) {
result->setStatus(&drvManager,
i18n("Could not create database \"%1\".")
- .tqarg(m_migrateData->destination->databaseName()));
+ .arg(m_migrateData->destination->databaseName()));
return false;
}
@@ -136,7 +136,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
kdDebug() << "Couldnt connect to database server" << endl;
if (result)
result->setStatus(i18n("Could not connect to data source \"%1\".")
- .tqarg(m_migrateData->source->serverInfoString()), "");
+ .arg(m_migrateData->source->serverInfoString()), "");
return false;
}
@@ -147,7 +147,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result)
result->setStatus(
i18n("Could not get a list of table names for data source \"%1\".")
- .tqarg(m_migrateData->source->serverInfoString()), "");
+ .arg(m_migrateData->source->serverInfoString()), "");
return false;
}
@@ -157,7 +157,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result)
result->setStatus(
i18n("No tables to import found in data source \"%1\".")
- .tqarg(m_migrateData->source->serverInfoString()), "");
+ .arg(m_migrateData->source->serverInfoString()), "");
return false;
}
@@ -173,7 +173,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (kexi__objects_exists) {
tristate res = drv_queryStringListFromSQL(
TQString::fromLatin1("SELECT o_name FROM kexi__objects WHERE o_type=%1")
- .tqarg((int)KexiDB::TableObjectType), 0, kexiDBTables, -1);
+ .arg((int)KexiDB::TableObjectType), 0, kexiDBTables, -1);
if (res == true) {
// prepend KexiDB-compatible tables to 'tables' list, so we'll copy KexiDB-compatible tables first,
// to make sure existing IDs will not be in conflict with IDs newly generated for non-KexiDB tables
@@ -201,7 +201,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result)
result->setStatus(
i18n("Could not import project from data source \"%1\". Error reading table \"%2\".")
- .tqarg(m_migrateData->source->serverInfoString()).tqarg(tableName), "");
+ .arg(m_migrateData->source->serverInfoString()).arg(tableName), "");
return false;
}
//yeah, got a table
@@ -230,7 +230,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result)
result->setStatus(destConn,
i18n("Could not create database \"%1\".")
- .tqarg(m_migrateData->destination->databaseName()));
+ .arg(m_migrateData->destination->databaseName()));
//later destConn->dropDatabase(m_migrateData->destination->databaseName());
//don't delete prj, otherwise eror message will be deleted delete prj;
//later return m_destPrj;
@@ -250,7 +250,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
bool firstRecord = true;
if (true == drv_fetchRecordFromSQL(
TQString("SELECT o_id, o_type, o_name, o_caption, o_desc FROM kexi__objects "
- "WHERE o_name='%1' AND o_type=%1").tqarg(*it).tqarg((int)KexiDB::TableObjectType),
+ "WHERE o_name='%1' AND o_type=%1").arg(*it).arg((int)KexiDB::TableObjectType),
data, firstRecord)
&& destConn->setupObjectSchemaData( data, *t ))
{
@@ -260,7 +260,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
TQString sql(
TQString::fromLatin1("SELECT t_id, f_type, f_name, f_length, f_precision, f_constraints, "
"f_options, f_default, f_order, f_caption, f_help"
- " FROM kexi__fields WHERE t_id=%1 ORDER BY f_order").tqarg(t->id()) );
+ " FROM kexi__fields WHERE t_id=%1 ORDER BY f_order").arg(t->id()) );
while (ok) {
tristate res = drv_fetchRecordFromSQL(sql, data, firstRecord);
if (res != true) {
@@ -301,7 +301,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result)
result->setStatus(destConn,
i18n("Could not create database \"%1\".")
- .tqarg(m_migrateData->destination->databaseName()));
+ .arg(m_migrateData->destination->databaseName()));
m_tableSchemas.remove(ts);
break;
}
@@ -331,7 +331,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result)
result->setStatus(m_destPrj,
i18n("Could not import project from data source \"%1\".")
- .tqarg(m_migrateData->source->serverInfoString()));
+ .arg(m_migrateData->source->serverInfoString()));
}
}
@@ -381,7 +381,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
kdDebug() << "Failed to copy table " << tname << endl;
if (result)
result->setStatus(destConn,
- i18n("Could not copy table \"%1\" to destination database.").tqarg(tname));
+ i18n("Could not copy table \"%1\" to destination database.").arg(tname));
break;
}
}//for
@@ -406,7 +406,7 @@ bool KexiMigrate::performImport(Kexi::ObjectStatus* result)
if (result && result->error())
result->setStatus(destConn,
i18n("Could not import data from data source \"%1\".")
- .tqarg(m_migrateData->source->serverInfoString()));
+ .arg(m_migrateData->source->serverInfoString()));
if (destConn) {
destConn->debugError();
destConn->rollbackTransaction(trans);
@@ -512,7 +512,7 @@ KexiDB::Field::Type KexiMigrate::userType(const TQString& fname)
res = dlg->getItem( i18n("Field Type"),
i18n("The data type for %1 could not be determined. "
"Please select one of the following data "
- "types").tqarg(fname),
+ "types").arg(fname),
types, 0, false);
//! @todo use TQMap<TQCString, KexiDB::Field::Type> here!
@@ -575,9 +575,9 @@ bool KexiMigrate::isValid()
{
setError(ERR_INCOMPAT_DRIVER_VERSION,
i18n("Incompatible migration driver's \"%1\" version: found version %2, expected version %3.")
- .tqarg(name())
- .tqarg(TQString("%1.%2").tqarg(versionMajor()).tqarg(versionMinor()))
- .tqarg(TQString("%1.%2").tqarg(KexiMigration::versionMajor()).tqarg(KexiMigration::versionMinor())));
+ .arg(name())
+ .arg(TQString("%1.%2").arg(versionMajor()).arg(versionMinor()))
+ .arg(TQString("%1.%2").arg(KexiMigration::versionMajor()).arg(KexiMigration::versionMinor())));
return false;
}
return true;
@@ -588,8 +588,8 @@ bool KexiMigrate::drv_queryMaxNumber(const TQString& tableName,
{
TQString string;
tristate r = drv_querySingleStringFromSQL(
- TQString::fromLatin1("SELECT MAX(%1) FROM %2").tqarg(drv_escapeIdentifier(columnName))
- .tqarg(drv_escapeIdentifier(tableName)), 0, string);
+ TQString::fromLatin1("SELECT MAX(%1) FROM %2").arg(drv_escapeIdentifier(columnName))
+ .arg(drv_escapeIdentifier(tableName)), 0, string);
if (r == false)
return false;
if (~r) {