diff options
Diffstat (limited to 'quanta/src/quanta.cpp')
-rw-r--r-- | quanta/src/quanta.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/quanta/src/quanta.cpp b/quanta/src/quanta.cpp index 27391537..11747dee 100644 --- a/quanta/src/quanta.cpp +++ b/quanta/src/quanta.cpp @@ -1781,7 +1781,7 @@ void QuantaApp::slotShowAnnotationView() makeDockVisible(dynamic_cast<KDockWidget*>(m_annotationOutputView->wrapperWidget())); } -TQWidget* QuantaApp::createContainer( TQWidget *tqparent, int index, const TQDomElement &element, int &id ) +TQWidget* QuantaApp::createContainer( TQWidget *parent, int index, const TQDomElement &element, int &id ) { TQString tabname = element.attribute( "i18ntabname", "" ); @@ -1822,18 +1822,18 @@ TQWidget* QuantaApp::createContainer( TQWidget *tqparent, int index, const TQDom return tb; } - return KMainWindow::createContainer( tqparent, index, element, id ); + return KMainWindow::createContainer( parent, index, element, id ); } -void QuantaApp::removeContainer( TQWidget *container, TQWidget *tqparent, TQDomElement &element, int id ) +void QuantaApp::removeContainer( TQWidget *container, TQWidget *parent, TQDomElement &element, int id ) { if (dynamic_cast<QuantaToolBar*>(container)) { ToolbarTabWidget::ref()->removePage(container); } else - KMainWindow::removeContainer( container, tqparent, element, id ); + KMainWindow::removeContainer( container, parent, element, id ); } void QuantaApp::slotBack() @@ -4442,21 +4442,21 @@ void QuantaApp::slotInsertCSS() if (styleNode->tag->type == Tag::XmlTagEnd && styleNode->prev) styleNode = styleNode->prev; - while (styleNode && styleNode->tqparent && styleNode->tag->name.lower() != "style" && styleNode->tag->dtd()->name == "text/css") - styleNode = styleNode->tqparent; + while (styleNode && styleNode->parent && styleNode->tag->name.lower() != "style" && styleNode->tag->dtd()->name == "text/css") + styleNode = styleNode->parent; Node *parentNode = node; if (parentNode->tag->type == Tag::XmlTagEnd && parentNode->prev) parentNode = parentNode->prev; else - while (parentNode && parentNode->tqparent && + while (parentNode && parentNode->parent && parentNode->tag->type != Tag::XmlTag) - parentNode = parentNode->tqparent; + parentNode = parentNode->parent; TQString fullDocument = w->editIf->text().stripWhiteSpace(); - if (styleNode->tag->name.lower() == "comment block" && styleNode->tqparent) { - if (styleNode->tqparent->tag->name.lower() == "style") { - styleNode = styleNode->tqparent; + if (styleNode->tag->name.lower() == "comment block" && styleNode->parent) { + if (styleNode->parent->tag->name.lower() == "style") { + styleNode = styleNode->parent; } } |