From: Frederik Gladhorn Date: Wed, 29 Aug 2007 16:36:16 +0000 (+0000) Subject: Remove all calls to document->originalIdentifier() - replaced by document->identifier(0). X-Git-Tag: v3.93.0~2 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=218641994f1339f0c25cf30d11d7ba0befb1bfee;p=libqmvoc.git Remove all calls to document->originalIdentifier() - replaced by document->identifier(0). svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706177 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 377bcaa..d5a2671 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -779,23 +779,6 @@ void KEduVocDocument::removeIdentifier( int index ) } -QString KEduVocDocument::originalIdentifier() const -{ - if ( d->m_identifiers.size() > 0 ) - return d->m_identifiers[0]; - else - return ""; -} - - -void KEduVocDocument::setOriginalIdentifier( const QString &id ) -{ - if ( d->m_identifiers.size() > 0 ) { - d->m_identifiers[0] = id; - } -} - - bool KEduVocDocument::isModified() const { return d->m_dirty; @@ -1303,6 +1286,7 @@ int KEduVocDocument::cleanUp() return count; } + void KEduVocDocument::shuffle() { KRandomSequence rs; diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 54e1141..abd8183 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -118,7 +118,6 @@ public: KUrl url() const; - /** set the title of the file * @param title title to set */ void setTitle( const QString & title ); @@ -162,6 +161,7 @@ public: /** @returns the version of the loaded file */ QString version() const; + // *** entry methods *** /** @@ -172,7 +172,7 @@ public: void appendEntry( KEduVocExpression *expression ); /** - * Inserts a new expression + * Inserts a new expression at position @p index * * @param expression expression to insert * @param index index of entry @@ -234,22 +234,10 @@ public: */ int appendIdentifier( const QString & id ); - /** - * Sets the original identifier - * - * @param id the new identifier - */ - void setOriginalIdentifier( const QString &id ); - - /** - * @returns the original identifier - */ - QString originalIdentifier() const; - /** * Sets the identifier of translation * - * @param index number of translation 1..x + * @param index number of translation 0..x * @param lang thr language identifier: en=english, de=german, ... */ void setIdentifier( int index, const QString &lang ); @@ -257,7 +245,7 @@ public: /** * Returns the identifier of translation @p index * - * @param index number of translation 1..x + * @param index number of translation 0..x * @returns the language identifier: en=english, de=german, ... */ QString identifier( int index ) const;