summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/dbproperties.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:38:41 -0600
commitf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch)
tree1fc538e179833e62caec21956bfe47a252be5a72 /kexi/kexidb/dbproperties.cpp
parent11191ef0b9908604d1d7aaca382b011ef22c454c (diff)
downloadkoffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz
koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kexi/kexidb/dbproperties.cpp')
-rw-r--r--kexi/kexidb/dbproperties.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kexi/kexidb/dbproperties.cpp b/kexi/kexidb/dbproperties.cpp
index 27b6a5b2..490a7390 100644
--- a/kexi/kexidb/dbproperties.cpp
+++ b/kexi/kexidb/dbproperties.cpp
@@ -39,19 +39,19 @@ bool DatabaseProperties::setValue( const TQString& _name, const TQVariant& value
//we need to know whether update or insert
bool exists = m_conn->resultExists(
TQString::fromLatin1("SELECT 1 FROM kexi__db WHERE db_property=%1")
- .tqarg(m_conn->driver()->escapeString(name)), ok);
+ .arg(m_conn->driver()->escapeString(name)), ok);
if (!ok) {
- setError(m_conn, i18n("Could not set value of database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not set value of database property \"%1\".").arg(name));
return false;
}
if (exists) {
if (!m_conn->executeSQL(
TQString::fromLatin1("UPDATE kexi__db SET db_value=%1 WHERE db_property=%2")
- .tqarg(m_conn->driver()->escapeString(value.toString()))
- .tqarg(m_conn->driver()->escapeString(name))))
+ .arg(m_conn->driver()->escapeString(value.toString()))
+ .arg(m_conn->driver()->escapeString(name))))
{
- setError(m_conn, i18n("Could not set value of database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not set value of database property \"%1\".").arg(name));
return false;
}
return true;
@@ -59,10 +59,10 @@ bool DatabaseProperties::setValue( const TQString& _name, const TQVariant& value
if (!m_conn->executeSQL(
TQString::fromLatin1("INSERT INTO kexi__db (db_property, db_value) VALUES (%1, %2)")
- .tqarg(m_conn->driver()->escapeString(name))
- .tqarg(m_conn->driver()->escapeString(value.toString()))))
+ .arg(m_conn->driver()->escapeString(name))
+ .arg(m_conn->driver()->escapeString(value.toString()))))
{
- setError(m_conn, i18n("Could not set value of database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not set value of database property \"%1\".").arg(name));
return false;
}
return true;
@@ -77,19 +77,19 @@ bool DatabaseProperties::setCaption( const TQString& _name, const TQString& capt
//we need to know whether update or insert
bool exists = m_conn->resultExists(
TQString::fromLatin1("SELECT 1 FROM kexi__db WHERE db_property=%1")
- .tqarg(m_conn->driver()->escapeString(name)), ok);
+ .arg(m_conn->driver()->escapeString(name)), ok);
if (!ok) {
- setError(m_conn, i18n("Could not set caption for database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not set caption for database property \"%1\".").arg(name));
return false;
}
if (exists) {
if (!m_conn->executeSQL(
TQString::fromLatin1("UPDATE kexi__db SET db_value=%1 WHERE db_property=%2")
- .tqarg(m_conn->driver()->escapeString(caption))
- .tqarg(m_conn->driver()->escapeString(name))))
+ .arg(m_conn->driver()->escapeString(caption))
+ .arg(m_conn->driver()->escapeString(name))))
{
- setError(m_conn, i18n("Could not set caption for database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not set caption for database property \"%1\".").arg(name));
return false;
}
return true;
@@ -97,10 +97,10 @@ bool DatabaseProperties::setCaption( const TQString& _name, const TQString& capt
if (!m_conn->executeSQL(
TQString::fromLatin1("INSERT INTO kexi__db (db_property, db_value) VALUES (%1, %2)")
- .tqarg(m_conn->driver()->escapeString(name))
- .tqarg(m_conn->driver()->escapeString(caption))))
+ .arg(m_conn->driver()->escapeString(name))
+ .arg(m_conn->driver()->escapeString(caption))))
{
- setError(m_conn, i18n("Could not set caption for database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not set caption for database property \"%1\".").arg(name));
return false;
}
return true;
@@ -113,7 +113,7 @@ TQVariant DatabaseProperties::value( const TQString& _name )
if (true!=m_conn->querySingleString(
TQString::fromLatin1("SELECT db_value FROM kexi__db WHERE db_property=")
+ m_conn->driver()->escapeString(name), result)) {
- m_conn->setError(ERR_NO_DB_PROPERTY, i18n("Could not read database property \"%1\".").tqarg(name));
+ m_conn->setError(ERR_NO_DB_PROPERTY, i18n("Could not read database property \"%1\".").arg(name));
return TQVariant();
}
return result;
@@ -128,7 +128,7 @@ TQString DatabaseProperties::caption( const TQString& _name )
if (true!=m_conn->querySingleString(
TQString::fromLatin1("SELECT db_value FROM kexi__db WHERE db_property=")
+ m_conn->driver()->escapeString(name), result)) {
- setError(m_conn, i18n("Could not read database property \"%1\".").tqarg(name));
+ setError(m_conn, i18n("Could not read database property \"%1\".").arg(name));
return TQString();
}
return result;