diff options
Diffstat (limited to 'src/projectsession.cpp')
-rw-r--r-- | src/projectsession.cpp | 18 |
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"); |