summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectprivate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project/projectprivate.cpp')
-rw-r--r--quanta/project/projectprivate.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/quanta/project/projectprivate.cpp b/quanta/project/projectprivate.cpp
index ce3686bf..52879849 100644
--- a/quanta/project/projectprivate.cpp
+++ b/quanta/project/projectprivate.cpp
@@ -351,7 +351,7 @@ void ProjectPrivate::insertFiles( KURL::List files )
progressBar->setTextEnabled(false);
parent->reloadTree(&(m_projectFiles), false, TQStringList());
- parent->newStatus();
+ parent->newtqStatus();
parent->statusMsg(TQString());
}
@@ -699,7 +699,7 @@ void ProjectPrivate::loadProjectXML()
parent->statusMsg(TQString());
parent->newProjectLoaded(projectName, baseURL, templateURL);
parent->reloadTree(&(m_projectFiles), true, treeStatusFromXML());
- parent->newStatus();
+ parent->newtqStatus();
adjustActions();
}
@@ -917,7 +917,7 @@ void ProjectPrivate::slotSaveAsProjectView(bool askForName)
{
if (!askForName ||
KMessageBox::warningContinueCancel(m_mainWindow, i18n("<qt>A project view named <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>")
- .arg(currentProjectView), TQString(), i18n("Overwrite")) == KMessageBox::Continue)
+ .tqarg(currentProjectView), TQString(), i18n("Overwrite")) == KMessageBox::Continue)
{
node.parentNode().removeChild(node);
break;
@@ -1056,7 +1056,7 @@ bool ProjectPrivate::createEmptyDom()
if (!result)
{
parent->hideSplash();
- KMessageBox::sorry(m_mainWindow, i18n("<qt>Cannot open file <b>%1</b> for writing.</qt>").arg(projectURL.prettyURL(0, KURL::StripFileProtocol)));
+ KMessageBox::sorry(m_mainWindow, i18n("<qt>Cannot open file <b>%1</b> for writing.</qt>").tqarg(projectURL.prettyURL(0, KURL::StripFileProtocol)));
delete tempFile;
tempFile = 0L;
delete sessionTempFile;
@@ -1099,7 +1099,7 @@ void ProjectPrivate::getStatusFromTree()
i--;
}
TQStringList folderList;
- parent->getTreeStatus( &folderList );
+ parent->getTreetqStatus( &folderList );
// toplevel folder is always open in a project and QExtFileInfo::toRelative
// creates strange output -> we remove the toplevel folder
if (folderList.count() > 0)
@@ -1122,7 +1122,7 @@ void ProjectPrivate::slotNewProject()
{
TQWizard *wiz = new TQWizard(m_mainWindow, "new", true);
wiz->setCaption(i18n("New Project Wizard"));
- wiz->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
+ wiz->tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
png = new ProjectNewGeneral(0L);
@@ -1197,7 +1197,7 @@ void ProjectPrivate::slotNewProject()
delete wiz;
adjustActions();
- parent->newStatus();
+ parent->newtqStatus();
}
/** close project and edited files */
@@ -1230,8 +1230,8 @@ void ProjectPrivate::slotProceedWithCloseProject(bool success)
parent->reloadTree( &(m_projectFiles), true, TQStringList());
adjustActions();
m_projectRecent->setCurrentItem(-1);
- parent->newStatus();
- kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
+ parent->newtqStatus();
+ kapp->tqprocessEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
}
@@ -1284,11 +1284,11 @@ bool ProjectPrivate::saveProject()
f.close();
}
m_modified = false;
- parent->statusMsg(i18n( "Wrote project file %1" ).arg(m_tmpProjectFile));
+ parent->statusMsg(i18n( "Wrote project file %1" ).tqarg(m_tmpProjectFile));
} else
{
parent->hideSplash();
- KMessageBox::error(m_mainWindow, i18n("<qt>Cannot open the file <b>%1</b> for writing.</qt>").arg(m_tmpProjectFile));
+ KMessageBox::error(m_mainWindow, i18n("<qt>Cannot open the file <b>%1</b> for writing.</qt>").tqarg(m_tmpProjectFile));
result = false;
}
return result;
@@ -1339,7 +1339,7 @@ void ProjectPrivate::loadProjectFromTemp(const KURL &url, const TQString &tempFi
} else
{
parent->hideSplash();
- KMessageBox::error(m_mainWindow, i18n("<qt>Cannot open the file <b>%1</b> for reading.</qt>").arg(tempFile));
+ KMessageBox::error(m_mainWindow, i18n("<qt>Cannot open the file <b>%1</b> for reading.</qt>").tqarg(tempFile));
}
}
@@ -1351,13 +1351,13 @@ bool ProjectPrivate::loadProject(const KURL &url)
if (!url.isValid())
{
parent->hideSplash();
- KMessageBox::sorry(m_mainWindow, i18n("<qt>Malformed URL: <b>%1</b></qt>").arg(url.prettyURL()));
+ KMessageBox::sorry(m_mainWindow, i18n("<qt>Malformed URL: <b>%1</b></qt>").tqarg(url.prettyURL()));
return false;
}
if ( projectAlreadyOpen(url.url()) )
{
parent->hideSplash();
- if (KMessageBox::warningContinueCancel(m_mainWindow, i18n("<qt>The project<br><b>%1</b><br> seems to be used by another Quanta instance.<br>You may end up with data loss if you open the same project in two instances, modify and save them in both.<br><br>Do you want to proceed with open?</qt>").arg(url.prettyURL()), TQString(), KStdGuiItem::open()) == KMessageBox::Cancel)
+ if (KMessageBox::warningContinueCancel(m_mainWindow, i18n("<qt>The project<br><b>%1</b><br> seems to be used by another Quanta instance.<br>You may end up with data loss if you open the same project in two instances, modify and save them in both.<br><br>Do you want to proceed with open?</qt>").tqarg(url.prettyURL()), TQString(), KStdGuiItem::open()) == KMessageBox::Cancel)
return false;
}
TQString projectTmpFile;
@@ -1416,7 +1416,7 @@ bool ProjectPrivate::loadProject(const KURL &url)
} else
{
parent->hideSplash();
- KMessageBox::error(m_mainWindow, i18n("<qt>Cannot access the project file <b>%1</b>.</qt>").arg(url.prettyURL(0, KURL::StripFileProtocol)));
+ KMessageBox::error(m_mainWindow, i18n("<qt>Cannot access the project file <b>%1</b>.</qt>").tqarg(url.prettyURL(0, KURL::StripFileProtocol)));
return false;
}
return true;
@@ -1532,7 +1532,7 @@ void ProjectPrivate::slotDebuggerOptions()
else
{
parent->hideSplash();
- KMessageBox::error(NULL, i18n("<qt>Unable to load the debugger plugin, error code %1 was returned: <b>%2</b>.</qt>").arg(errCode).arg(KLibLoader::self()->lastErrorMessage()), i18n("Debugger Error"));
+ KMessageBox::error(NULL, i18n("<qt>Unable to load the debugger plugin, error code %1 was returned: <b>%2</b>.</qt>").tqarg(errCode).tqarg(KLibLoader::self()->lastErrorMessage()), i18n("Debugger Error"));
}
}
}
@@ -1639,7 +1639,7 @@ bool ProjectPrivate::uploadProjectFile()
{
removeFromConfig(projectURL.url()); // remove the project from the list of open projects
if (quantaApp)
- parent->statusMsg(i18n( "Uploaded project file %1" ).arg( projectURL.prettyURL()));
+ parent->statusMsg(i18n( "Uploaded project file %1" ).tqarg( projectURL.prettyURL()));
// delete all temp files we used
// first the one from creating a new project
delete tempFile;