summaryrefslogtreecommitdiffstats
path: root/lib/store
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /lib/store
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/store')
-rw-r--r--lib/store/KoXmlWriter.cpp28
-rw-r--r--lib/store/tests/storedroptest.cpp6
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 );