summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexiproject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/kexiproject.cpp')
-rw-r--r--kexi/core/kexiproject.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/core/kexiproject.cpp b/kexi/core/kexiproject.cpp
index 5b26cb39..1dbe4eef 100644
--- a/kexi/core/kexiproject.cpp
+++ b/kexi/core/kexiproject.cpp
@@ -180,7 +180,7 @@ KexiProject::openInternal(bool *incompatibleWithKexi)
*incompatibleWithKexi = false;
kdDebug() << "KexiProject::open(): " << d->data->databaseName() <<" "<< d->data->connectionData()->driverName << endl;
KexiDB::MessageTitle et(this,
- i18n("Could not open project \"%1\".").tqarg(d->data->databaseName()));
+ i18n("Could not open project \"%1\".").arg(d->data->databaseName()));
if (!createConnection()) {
kdDebug() << "KexiProject::open(): !createConnection()" << endl;
@@ -225,7 +225,7 @@ tristate
KexiProject::create(bool forceOverwrite)
{
KexiDB::MessageTitle et(this,
- i18n("Could not create project \"%1\".").tqarg(d->data->databaseName()));
+ i18n("Could not create project \"%1\".").arg(d->data->databaseName()));
if (!createConnection())
return false;
@@ -529,9 +529,9 @@ KexiProject::initProject()
d->data->setDescription( str );
/* KexiDB::RowData data;
TQString sql = "select db_value from kexi__db where db_property='%1'";
- if (d->connection->querySingleRecord( sql.tqarg("project_caption"), data ) && !data[0].toString().isEmpty())
+ if (d->connection->querySingleRecord( sql.arg("project_caption"), data ) && !data[0].toString().isEmpty())
d->data->setCaption(data[0].toString());
- if (d->connection->querySingleRecord( sql.tqarg("project_desc"), data) && !data[0].toString().isEmpty())
+ if (d->connection->querySingleRecord( sql.arg("project_desc"), data) && !data[0].toString().isEmpty())
d->data->setDescription(data[0].toString());*/
return true;
@@ -736,7 +736,7 @@ KexiDialogBase* KexiProject::openObject(KexiMainWindow *wnd, KexiPart::Item& ite
KexiDialogBase *dlg = part->openInstance(wnd, item, viewMode, staticObjectArgs);
if (!dlg) {
if (part->lastOperationStatus().error())
- setError(i18n("Opening object \"%1\" failed.").tqarg(item.name())+"<br>"
+ setError(i18n("Opening object \"%1\" failed.").arg(item.name())+"<br>"
+part->lastOperationStatus().message,
part->lastOperationStatus().description);
return 0;
@@ -817,13 +817,13 @@ bool KexiProject::renameObject( KexiMainWindow *wnd, KexiPart::Item& item, const
}
if (this->itemForMimeType(item.mimeType(), newName)!=0) {
setError( i18n("Could not use this name. Object with name \"%1\" already exists.")
- .tqarg(newName) );
+ .arg(newName) );
return false;
}
}
KexiDB::MessageTitle et(this,
- i18n("Could not rename object \"%1\".").tqarg(item.name()) );
+ i18n("Could not rename object \"%1\".").arg(item.name()) );
if (!checkWritable())
return false;
KexiPart::Part *part = findPartFor(item);
@@ -960,7 +960,7 @@ KexiProject::createBlankProject(bool &cancelled, KexiProjectData* data,
if (KMessageBox::Yes != KMessageBox::warningYesNo(0, "<qt>"+i18n(
"The project %1 already exists.\n"
"Do you want to replace it with a new, blank one?")
- .tqarg(prj->data()->infoString())+"\n"+warningNoUndo+"</qt>",
+ .arg(prj->data()->infoString())+"\n"+warningNoUndo+"</qt>",
TQString(), KGuiItem(i18n("Replace")), KStdGuiItem::cancel() ))
//todo add serverInfoString() for server-based prj
{
@@ -985,7 +985,7 @@ tristate KexiProject::dropProject(KexiProjectData* data,
KexiDB::MessageHandler* handler, bool dontAsk)
{
if (!dontAsk && KMessageBox::Yes != KMessageBox::warningYesNo(0,
- i18n("Do you want to drop the project \"%1\"?").tqarg(data->KexiDB::SchemaData::objectName())+"\n"+warningNoUndo ))
+ i18n("Do you want to drop the project \"%1\"?").arg(data->KexiDB::SchemaData::objectName())+"\n"+warningNoUndo ))
return cancelled;
KexiProject prj( new KexiProjectData(*data), handler );