summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexipart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/kexipart.cpp')
-rw-r--r--kexi/core/kexipart.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kexi/core/kexipart.cpp b/kexi/core/kexipart.cpp
index 49f1aeab..ba54fea7 100644
--- a/kexi/core/kexipart.cpp
+++ b/kexi/core/kexipart.cpp
@@ -66,7 +66,7 @@ public:
singleStatusString.prepend(TQString("\n\n")+i18n("Details:")+" ");
if (KMessageBox::No==KMessageBox::questionYesNo(0,
((viewMode == Kexi::DesignViewMode)
- ? i18n("Object \"%1\" could not be opened in Design View.").arg(item.name())
+ ? i18n("Object \"%1\" could not be opened in Design View.").tqarg(item.name())
: i18n("Object could not be opened in Data View."))+"\n"
+ i18n("Do you want to open it in Text View?") + singleStatusString, 0,
KStdGuiItem::open(), KStdGuiItem::cancel()))
@@ -242,11 +242,11 @@ KexiDialogBase* Part::openInstance(KexiMainWindow *win, KexiPart::Item &item, in
d->instanceActionsInitialized = true;
}
- m_status.clearStatus();
+ m_status.cleartqStatus();
// KexiDialogBase *dlg = createInstance(win,item,viewMode);
// if (!dlg)
// return 0;
-// TQString capt = TQString("%1 : %2").arg(item.name()).arg(instanceName());
+// TQString capt = TQString("%1 : %2").tqarg(item.name()).tqarg(instanceName());
KexiDialogBase *dlg = new KexiDialogBase(win);
dlg->m_supportedViewModes = m_supportedViewModes;
// dlg->m_neverSaved = item.neverSaved();
@@ -289,11 +289,11 @@ KexiDialogBase* Part::openInstance(KexiMainWindow *win, KexiPart::Item &item, in
}
if (!dlg->m_schemaData) {
if (!m_status.error())
- m_status = Kexi::ObjectStatus( dlg->mainWin()->project()->dbConnection(),
+ m_status = Kexi::ObjecttqStatus( dlg->mainWin()->project()->dbConnection(),
i18n("Could not load object's definition."), i18n("Object design may be corrupted."));
m_status.append(
- Kexi::ObjectStatus(i18n("You can delete \"%1\" object and create it again.")
- .arg(item.name()), TQString()) );
+ Kexi::ObjecttqStatus(i18n("You can delete \"%1\" object and create it again.")
+ .tqarg(item.name()), TQString()) );
dlg->close();
delete dlg;
@@ -339,9 +339,9 @@ KexiDialogBase* Part::openInstance(KexiMainWindow *win, KexiPart::Item &item, in
dlg->show();
if (dlg->mdiParent() && dlg->mdiParent()->state()==KMdiChildFrm::Normal) //only resize dialog if it is in normal state
- dlg->resize(dlg->sizeHint());
+ dlg->resize(dlg->tqsizeHint());
- dlg->setMinimumSize(dlg->minimumSizeHint().width(),dlg->minimumSizeHint().height());
+ dlg->setMinimumSize(dlg->tqminimumSizeHint().width(),dlg->tqminimumSizeHint().height());
//dirty only if it's a new object
if (dlg->selectedView())
@@ -366,8 +366,8 @@ KexiDB::SchemaData* Part::loadSchemaData(KexiDialogBase * /*dlg*/, const KexiDB:
bool Part::loadDataBlock( KexiDialogBase *dlg, TQString &dataString, const TQString& dataID)
{
if (!dlg->mainWin()->project()->dbConnection()->loadDataBlock( dlg->id(), dataString, dataID )) {
- m_status = Kexi::ObjectStatus( dlg->mainWin()->project()->dbConnection(),
- i18n("Could not load object's data."), i18n("Data identifier: \"%1\".").arg(dataID) );
+ m_status = Kexi::ObjecttqStatus( dlg->mainWin()->project()->dbConnection(),
+ i18n("Could not load object's data."), i18n("Data identifier: \"%1\".").tqarg(dataID) );
m_status.append( *dlg );
return false;
}
@@ -431,11 +431,11 @@ tristate Part::rename(KexiMainWindow *win, KexiPart::Item &item, const TQString&
GUIClient::GUIClient(KexiMainWindow *win, Part* part, bool partInstanceClient, const char* nameSuffix)
: TQObject(part,
(part->info()->objectName()
- + (nameSuffix ? TQString(":%1").arg(nameSuffix) : TQString())).latin1() )
+ + (nameSuffix ? TQString(":%1").tqarg(nameSuffix) : TQString())).latin1() )
, KXMLGUIClient(win)
{
if(!win->project()->data()->userMode())
- setXMLFile(TQString::fromLatin1("kexi")+part->info()->objectName()
+ setXMLFile(TQString::tqfromLatin1("kexi")+part->info()->objectName()
+"part"+(partInstanceClient?"inst":"")+"ui.rc");
// new KAction(part->m_names["new"], part->info()->itemIcon(), 0, this,