From 6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../components/framewizard/visualframeeditor.cpp | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'quanta/components/framewizard/visualframeeditor.cpp') diff --git a/quanta/components/framewizard/visualframeeditor.cpp b/quanta/components/framewizard/visualframeeditor.cpp index 215bdf63..e822d7e0 100644 --- a/quanta/components/framewizard/visualframeeditor.cpp +++ b/quanta/components/framewizard/visualframeeditor.cpp @@ -32,7 +32,7 @@ TQMap > SIZES; static int splitterIdNumber = 0; -VisualFrameEditor::VisualFrameEditor(TQWidget * tqparent, const char * name) : TQHBox(tqparent,name){ +VisualFrameEditor::VisualFrameEditor(TQWidget * parent, const char * name) : TQHBox(parent,name){ m_internalTree = new tree; m_internalTree->root()->atts()->setGeometry(TQRect(0,0,510,422)); m_firstInsertedSA = 0L; @@ -136,21 +136,21 @@ TQStringList VisualFrameEditor::convertAsterisks(const TQString &s,int d){ return list; } -void VisualFrameEditor::buildInternalTree(const TQString &tqparent){ +void VisualFrameEditor::buildInternalTree(const TQString &parent){ TQString line = m_existingStructure.first(); if(line.contains("findNode(tqparent)->atts()->tqgeometry(); + TQRect dummy=m_internalTree->findNode(parent)->atts()->tqgeometry(); TQStringList percentages = convertAsterisks(pattern.cap(1),dummy.height()); int dummyDimension=dummy.height()-cancelledPixels(line.contains(",")+1); - TQPtrList list=m_internalTree->findNode(tqparent)->tqchildrenList(); + TQPtrList list=m_internalTree->findNode(parent)->tqchildrenList(); TQPtrListIterator it( list ); treeNode *node; while ( (node = it.current()) != 0 ) { @@ -167,16 +167,16 @@ void VisualFrameEditor::buildInternalTree(const TQString &tqparent){ } else if(line.contains("cols")) { - split(tqparent,(line.contains(",")+1),VERTICAL); + split(parent,(line.contains(",")+1),VERTICAL); TQRegExp pattern("cols\\s*=\"([\\s\\d%,\\*]*)\""); pattern.search(line); - TQRect dummy=m_internalTree->findNode(tqparent)->atts()->tqgeometry(); + TQRect dummy=m_internalTree->findNode(parent)->atts()->tqgeometry(); TQStringList percentages = convertAsterisks(pattern.cap(1),dummy.width()); int dummyDimension=dummy.width()-cancelledPixels(line.contains(",")+1); - TQPtrList list=m_internalTree->findNode(tqparent)->tqchildrenList(); + TQPtrList list=m_internalTree->findNode(parent)->tqchildrenList(); TQPtrListIterator it( list ); treeNode *node; while ( (node = it.current()) != 0 ) { @@ -193,10 +193,10 @@ void VisualFrameEditor::buildInternalTree(const TQString &tqparent){ } m_existingStructure.pop_front(); - m_internalTree->findNode(tqparent)->firstChild(); - while(m_internalTree->findNode(tqparent)->currentChild()) { - buildInternalTree(m_internalTree->findNode(tqparent)->currentChild()->label()); - m_internalTree->findNode(tqparent)->nextChild(); + m_internalTree->findNode(parent)->firstChild(); + while(m_internalTree->findNode(parent)->currentChild()) { + buildInternalTree(m_internalTree->findNode(parent)->currentChild()->label()); + m_internalTree->findNode(parent)->nextChild(); } } else { @@ -221,7 +221,7 @@ void VisualFrameEditor::buildInternalTree(const TQString &tqparent){ attributeMap[ pattern.cap(1).section( TQRegExp("=\\s*\"") ,0,0) ] = pattern.cap(1).section(TQRegExp("=\\s*\""),1,1).remove("\""); if ( pos >= 0 ) pos += pattern.matchedLength(); } - m_internalTree->findNode(tqparent)->atts()->setAllAttributes(attributeMap); + m_internalTree->findNode(parent)->atts()->setAllAttributes(attributeMap); m_existingStructure.pop_front(); } } @@ -283,10 +283,10 @@ void VisualFrameEditor::removeNode(const TQString &l){ } } -void VisualFrameEditor::drawGUI(treeNode *n, TQWidget* tqparent){ +void VisualFrameEditor::drawGUI(treeNode *n, TQWidget* parent){ if(n->hasChildren()) { TQString splitterName("splitter"+TQString::number(++splitterIdNumber,10)); - TQSplitter *splitter = new TQSplitter(tqparent,splitterName.ascii()); + TQSplitter *splitter = new TQSplitter(parent,splitterName.ascii()); if(SIZES.contains(splitterName)) splitter->setSizes( SIZES[splitterName] ); switch( n->splitType() ){ case VERTICAL : splitter->setOrientation(Qt::Horizontal);break; @@ -300,8 +300,8 @@ void VisualFrameEditor::drawGUI(treeNode *n, TQWidget* tqparent){ } } else { - SelectableArea *sa=new SelectableArea(tqparent,n->label().ascii()); - if(tqparent->isA(TQSPLITTER_OBJECT_NAME_STRING)) dynamic_cast(tqparent)->setResizeMode(sa->view(),TQSplitter::KeepSize ); + SelectableArea *sa=new SelectableArea(parent,n->label().ascii()); + if(parent->isA(TQSPLITTER_OBJECT_NAME_STRING)) dynamic_cast(parent)->setResizeMode(sa->view(),TQSplitter::KeepSize ); else if(!m_firstInsertedSA) m_firstInsertedSA = sa; sa->view()->setGeometry(n->atts()->tqgeometry()); -- cgit v1.2.3