From: Frederik Gladhorn Date: Wed, 29 Aug 2007 13:52:23 +0000 (+0000) Subject: Rename documentRemark to documentComment X-Git-Tag: v3.93.0~3 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=312e80cce01930a454d238802e79e94375be28b2;p=libqmvoc.git Rename documentRemark to documentComment svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706123 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 505e905..377bcaa 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -86,7 +86,7 @@ public: QString m_title; QString m_author; QString m_license; - QString m_remark; + QString m_comment; QString m_version; QString m_csvDelimiter; @@ -126,7 +126,7 @@ void KEduVocDocument::KEduVocDocumentPrivate::init() m_url.setFileName( i18n( "Untitled" ) ); m_title = ""; m_author = ""; - m_remark = ""; + m_comment = ""; m_version = ""; m_generator = ""; m_csvDelimiter = QString( '\t' ); @@ -1003,9 +1003,9 @@ QString KEduVocDocument::license() const } -QString KEduVocDocument::documentRemark() const +QString KEduVocDocument::documentComment() const { - return d->m_remark; + return d->m_comment; } @@ -1041,9 +1041,9 @@ void KEduVocDocument::setLicense( const QString & s ) } -void KEduVocDocument::setDocumentRemark( const QString & s ) +void KEduVocDocument::setDocumentComment( const QString & s ) { - d->m_remark = s.simplified(); + d->m_comment = s.simplified(); } diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 7b84711..54e1141 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -140,12 +140,12 @@ public: /** @returns the license of the file */ QString license() const; - /** set the remark of the file - * @param rem remark to set */ - void setDocumentRemark( const QString & rem ); + /** set the comment of the file + * @param comment comment to set */ + void setDocumentComment( const QString & comment ); - /** @return the remark of the file */ - QString documentRemark() const; + /** @return the comment of the file */ + QString documentComment() const; /** * Sets the generator of the file diff --git a/keduvocdocument/keduvockvtml2reader.cpp b/keduvocdocument/keduvockvtml2reader.cpp index 92b6f94..5853223 100644 --- a/keduvocdocument/keduvockvtml2reader.cpp +++ b/keduvocdocument/keduvockvtml2reader.cpp @@ -121,7 +121,7 @@ bool KEduVocKvtml2Reader::readInformation( QDomElement &informationElement ) // read the comment currentElement = informationElement.firstChildElement( KVTML_COMMENT ); if ( !currentElement.isNull() ) { - m_doc->setDocumentRemark( currentElement.text() ); + m_doc->setDocumentComment( currentElement.text() ); } return true; diff --git a/keduvocdocument/keduvockvtml2writer.cpp b/keduvocdocument/keduvockvtml2writer.cpp index 2d8960f..d0caf5f 100644 --- a/keduvocdocument/keduvockvtml2writer.cpp +++ b/keduvocdocument/keduvockvtml2writer.cpp @@ -124,8 +124,8 @@ bool KEduVocKvtml2Writer::writeInformation( QDomElement &informationElement, con } // comment - if ( !m_doc->documentRemark().isEmpty() ) { - informationElement.appendChild( newTextElement( KVTML_COMMENT, m_doc->documentRemark() ) ); + if ( !m_doc->documentComment().isEmpty() ) { + informationElement.appendChild( newTextElement( KVTML_COMMENT, m_doc->documentComment() ) ); } return true; diff --git a/keduvocdocument/keduvockvtmlreader.cpp b/keduvocdocument/keduvockvtmlreader.cpp index 5b1cc3f..42f8b7c 100644 --- a/keduvocdocument/keduvockvtmlreader.cpp +++ b/keduvocdocument/keduvockvtmlreader.cpp @@ -82,7 +82,7 @@ bool KEduVocKvtmlReader::readDoc( KEduVocDocument *doc ) documentAttribute = domElementKvtml.attributeNode( KV_DOC_REM ); if ( !documentAttribute.isNull() ) - m_doc->setDocumentRemark( documentAttribute.value() ); + m_doc->setDocumentComment( documentAttribute.value() ); documentAttribute = domElementKvtml.attributeNode( KV_GENERATOR ); if ( !documentAttribute.isNull() ) { diff --git a/keduvocdocument/keduvockvtmlwriter.cpp b/keduvocdocument/keduvockvtmlwriter.cpp index 10c5801..0f887c0 100644 --- a/keduvocdocument/keduvockvtmlwriter.cpp +++ b/keduvocdocument/keduvockvtmlwriter.cpp @@ -63,8 +63,8 @@ bool KEduVocKvtmlWriter::writeDoc( KEduVocDocument *doc, const QString &generato if ( !m_doc->license().isEmpty() ) domElementKvtml.setAttribute( KV_LICENSE, m_doc->license() ); - if ( !m_doc->documentRemark().isEmpty() ) - domElementKvtml.setAttribute( KV_DOC_REM, m_doc->documentRemark() ); + if ( !m_doc->documentComment().isEmpty() ) + domElementKvtml.setAttribute( KV_DOC_REM, m_doc->documentComment() ); if ( !writeLesson( domDoc, domElementKvtml ) ) return false; diff --git a/keduvocdocument/keduvocpaukerreader.cpp b/keduvocdocument/keduvocpaukerreader.cpp index 915dcfe..d102710 100644 --- a/keduvocdocument/keduvocpaukerreader.cpp +++ b/keduvocdocument/keduvocpaukerreader.cpp @@ -77,7 +77,7 @@ void KEduVocPaukerReader::readPauker() if ( isStartElement() ) { if ( name() == "Description" ) - m_doc->setDocumentRemark( readElementText() ); + m_doc->setDocumentComment( readElementText() ); else if ( name() == "Batch" ) readBatch(); else diff --git a/keduvocdocument/keduvocxdxfreader.cpp b/keduvocdocument/keduvocxdxfreader.cpp index 4b7a923..f5d272b 100644 --- a/keduvocdocument/keduvocxdxfreader.cpp +++ b/keduvocdocument/keduvocxdxfreader.cpp @@ -85,7 +85,7 @@ void KEduVocXdxfReader::readXdxf() if ( isStartElement() ) { if ( name() == "description" ) - m_doc->setDocumentRemark( readElementText() ); + m_doc->setDocumentComment( readElementText() ); else if ( name() == "full_name" ) m_doc->setTitle( readElementText() ); else if ( name() == "ar" ) diff --git a/keduvocdocument/sharedkvtmlfiles.cpp b/keduvocdocument/sharedkvtmlfiles.cpp index b1ac0dc..6862d15 100644 --- a/keduvocdocument/sharedkvtmlfiles.cpp +++ b/keduvocdocument/sharedkvtmlfiles.cpp @@ -98,7 +98,7 @@ void SharedKvtmlFilesPrivate::rescan() this->m_titleList.append( doc->title() ); // add it's comment to the comment list - this->m_commentList.append( doc->documentRemark() ); + this->m_commentList.append( doc->documentComment() ); } // plug a memory leak delete doc;