summaryrefslogtreecommitdiffstats
path: root/src/projectsession.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/projectsession.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/projectsession.cpp')
-rw-r--r--src/projectsession.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/projectsession.cpp b/src/projectsession.cpp
index 1b09ca71..ae54bbfa 100644
--- a/src/projectsession.cpp
+++ b/src/projectsession.cpp
@@ -79,7 +79,7 @@ bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQ
if (!ok) {
KMessageBox::sorry(0L,
i18n("The file %1 does not contain valid XML.\n"
- "The loading of the session failed.").arg(sessionFileName));
+ "The loading of the session failed.").tqarg(sessionFileName));
initXMLTree(); // because it was now broken after failed setContent()
return false;
}
@@ -91,8 +91,8 @@ bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQ
// Check for proper document type.
if (domdoc.doctype().name() != "KDevPrjSession") {
KMessageBox::sorry(0L,
- i18n("The file %1 does not contain a valid KDevelop project session ('KDevPrjSession').\n").arg(sessionFileName)
- + i18n("The document type seems to be: '%1'.").arg(domdoc.doctype().name()));
+ i18n("The file %1 does not contain a valid KDevelop project session ('KDevPrjSession').\n").tqarg(sessionFileName)
+ + i18n("The document type seems to be: '%1'.").tqarg(domdoc.doctype().name()));
return false;
}
@@ -112,7 +112,7 @@ bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQ
TQString pluginName = pPlugin->instance()->instanceName();
TQDomElement pluginEl = pluginListEl.namedItem(pluginName).toElement();
if (!pluginEl.isNull()) {
- // now plugin, load what you find!
+ // now plugin, load what you tqfind!
pPlugin->restorePartialProjectSession(&pluginEl);
}
++it;
@@ -128,7 +128,7 @@ void ProjectSession::recreateDocs(TQDomElement& el)
{
//// TQDomElement mainframeEl = el.namedItem("Mainframe").toElement();
//// bool bMaxMode =initXMLTree() (bool) mainframeEl.attribute("MaximizeMode", "0").toInt();
-//// QextMdiMainFrm* pMainWidget = (QextMdiMainFrm*) qApp->mainWidget();
+//// QextMdiMainFrm* pMainWidget = (QextMdiMainFrm*) tqApp->mainWidget();
//// pMainWidget->setEnableMaximizedChildFrmMode(bMaxMode);
//// bool bTaskBarWasOn = pMainWidget->isViewTaskBarOn();
//// pMainWidget->hideViewTaskBar();
@@ -221,8 +221,8 @@ void ProjectSession::recreateViews(KURL& url, TQDomElement docEl, bool activate)
}
//// // restore focus
//// if (pFocusedView != 0L) {
-//// if (pFocusedView->parentWidget()->inherits("QextMdiChildView")) {
-//// ((QextMdiChildView*)pFocusedView->parentWidget())->activate();
+//// if (pFocusedView->tqparentWidget()->inherits("QextMdiChildView")) {
+//// ((QextMdiChildView*)pFocusedView->tqparentWidget())->activate();
//// }
//// pFocusedView->setFocus();
//// }
@@ -244,7 +244,7 @@ bool ProjectSession::saveToFile( const TQString & sessionFileName, const TQValue
//// mainframeEl=domdoc.createElement("Mainframe");
//// session.appendChild( mainframeEl);
//// }
-//// bool bMaxMode = ((QextMdiMainFrm*)m_pDocViewMan->parent())->isInMaximizedChildFrmMode();
+//// bool bMaxMode = ((QextMdiMainFrm*)m_pDocViewMan->tqparent())->isInMaximizedChildFrmMode();
//// mainframeEl.setAttribute("MaximizeMode", bMaxMode);
@@ -349,7 +349,7 @@ bool ProjectSession::saveToFile( const TQString & sessionFileName, const TQValue
TQDomElement viewEl = domdoc.createElement( "View"+viewIdStr);
docEl.appendChild( viewEl);
// focus?
-//// viewEl.setAttribute("Focus", (((CEditWidget*)pView->parentWidget()) == m_pDocViewMan->currentEditView()));
+//// viewEl.setAttribute("Focus", (((CEditWidget*)pView->tqparentWidget()) == m_pDocViewMan->currentEditView()));
viewEl.setAttribute("Type", "???");
TQDomElement viewPropertiesEl = domdoc.createElement("AdditionalSettings");