From f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:38:41 -0600 Subject: Remove additional unneeded tq method conversions --- kexi/kexidb/utils.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kexi/kexidb/utils.cpp') diff --git a/kexi/kexidb/utils.cpp b/kexi/kexidb/utils.cpp index 8551a0ef..594773af 100644 --- a/kexi/kexidb/utils.cpp +++ b/kexi/kexidb/utils.cpp @@ -138,7 +138,7 @@ void KexiDB::getHTMLErrorMesage(Object* obj, TQString& msg, TQString &details) if (!obj->serverErrorMsg().isEmpty()) details += "

" +i18n("Message from server:") + "
" + obj->serverErrorMsg(); if (!obj->recentSQLString().isEmpty()) - details += "

" +i18n("SQL statement:") + TQString("
%1").tqarg(obj->recentSQLString()); + details += "

" +i18n("SQL statement:") + TQString("
%1").arg(obj->recentSQLString()); int serverResult; TQString serverResultName; if (obj->serverResult()!=0) { @@ -179,7 +179,7 @@ int KexiDB::idForObjectName( Connection &conn, const TQString& objName, int objT { RowData data; if (true!=conn.querySingleRecord(TQString("select o_id from kexi__objects where lower(o_name)='%1' and o_type=%2") - .tqarg(objName.lower()).tqarg(objType), data)) + .arg(objName.lower()).arg(objType), data)) return 0; bool ok; int id = data[0].toInt(&ok); @@ -387,7 +387,7 @@ ConnectionTestDialog::ConnectionTestDialog(TQWidget* parent, KexiDB::MessageHandler& msgHandler) : KProgressDialog(parent, "testconn_dlg", i18n("Test Connection"), i18n("Testing connection to %1 database server...") - .tqarg(data.serverInfoString(true)), true /*modal*/) + .arg(data.serverInfoString(true)), true /*modal*/) , m_thread(new ConnectionTestThread(this, data)) , m_connData(data) , m_msgHandler(&msgHandler) @@ -441,13 +441,13 @@ void ConnectionTestDialog::slotTimeout() else if (notResponding) { KMessageBox::sorry(0, i18n("Test connection to %1 database server failed. The server is not responding.") - .tqarg(m_connData.serverInfoString(true)), + .arg(m_connData.serverInfoString(true)), i18n("Test Connection")); } else { KMessageBox::information(0, i18n("Test connection to %1 database server established successfully.") - .tqarg(m_connData.serverInfoString(true)), + .arg(m_connData.serverInfoString(true)), i18n("Test Connection")); } // slotCancel(); @@ -807,7 +807,7 @@ bool KexiDB::setFieldProperty( Field& field, const TQCString& propertyName, cons else { if (!field.table()) { KexiDBWarn << TQString("KexiDB::setFieldProperty() Cannot set \"%1\" property - no table assinged for field!") - .tqarg(propertyName.data()) << endl; + .arg(propertyName.data()) << endl; } else { LookupFieldSchema *lookup = field.table()->lookupFieldSchema(field); @@ -1228,7 +1228,7 @@ void KexiDB::getLimitsForType(Field::Type type, int &minValue, int &maxValue) void KexiDB::debugRowData(const RowData& rowData) { - KexiDBDbg << TQString("ROW DATA (%1 columns):").tqarg(rowData.count()) << endl; + KexiDBDbg << TQString("ROW DATA (%1 columns):").arg(rowData.count()) << endl; foreach(RowData::ConstIterator, it, rowData) KexiDBDbg << "- " << (*it) << endl; } -- cgit v1.2.1