diff options
Diffstat (limited to 'lib/store')
-rw-r--r-- | lib/store/KoXmlWriter.cpp | 28 | ||||
-rw-r--r-- | lib/store/tests/storedroptest.cpp | 6 |
2 files changed, 17 insertions, 17 deletions
diff --git a/lib/store/KoXmlWriter.cpp b/lib/store/KoXmlWriter.cpp index dca95d8a..f3568606 100644 --- a/lib/store/KoXmlWriter.cpp +++ b/lib/store/KoXmlWriter.cpp @@ -72,31 +72,31 @@ void KoXmlWriter::endDocument() Q_ASSERT( m_tags.isEmpty() ); } -// returns the value of indentInside of the tqparent +// returns the value of indentInside of the parent bool KoXmlWriter::prepareForChild() { if ( !m_tags.isEmpty() ) { - Tag& tqparent = m_tags.top(); - if ( !tqparent.hasChildren ) { - closeStartElement( tqparent ); - tqparent.hasChildren = true; - tqparent.lastChildIsText = false; + Tag& parent = m_tags.top(); + if ( !parent.hasChildren ) { + closeStartElement( parent ); + parent.hasChildren = true; + parent.lastChildIsText = false; } - if ( tqparent.indentInside ) { + if ( parent.indentInside ) { writeIndent(); } - return tqparent.indentInside; + return parent.indentInside; } return true; } void KoXmlWriter::prepareForTextNode() { - Tag& tqparent = m_tags.top(); - if ( !tqparent.hasChildren ) { - closeStartElement( tqparent ); - tqparent.hasChildren = true; - tqparent.lastChildIsText = true; + Tag& parent = m_tags.top(); + if ( !parent.hasChildren ) { + closeStartElement( parent ); + parent.hasChildren = true; + parent.lastChildIsText = true; } } @@ -104,7 +104,7 @@ void KoXmlWriter::startElement( const char* tagName, bool indentInside ) { Q_ASSERT( tagName != 0 ); - // Tell tqparent that it has tqchildren + // Tell parent that it has tqchildren bool parentIndent = prepareForChild(); m_tags.push( Tag( tagName, parentIndent && indentInside ) ); diff --git a/lib/store/tests/storedroptest.cpp b/lib/store/tests/storedroptest.cpp index 344cab54..9da8d2d8 100644 --- a/lib/store/tests/storedroptest.cpp +++ b/lib/store/tests/storedroptest.cpp @@ -9,7 +9,7 @@ class StoreDropTest : public TQTextBrowser { public: - StoreDropTest( TQWidget* tqparent ); + StoreDropTest( TQWidget* parent ); protected: virtual void contentsDragEnterEvent( TQDragEnterEvent * e ); virtual void contentsDragMoveEvent( TQDragMoveEvent * e ); @@ -36,8 +36,8 @@ int main( int argc, char** argv ) return app.exec(); } -StoreDropTest::StoreDropTest( TQWidget* tqparent ) - : TQTextBrowser( tqparent ) +StoreDropTest::StoreDropTest( TQWidget* parent ) + : TQTextBrowser( parent ) { setText( "KoStore drop/paste test\nDrop or paste a selection from a KOffice application into this widget to see the ZIP contents" ); setAcceptDrops( true ); |