From 29f1b99b76828a20fc132183c9effe3f0502eaa0 Mon Sep 17 00:00:00 2001 From: Avgoustinos Kadis Date: Wed, 30 Jul 2008 07:54:22 +0000 Subject: [PATCH] Implemented indexOfIdentifier() function (in comments). Works only by removing the const from the function definition. Not sure about binary compatibility so I didn't remove it. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=839512 --- keduvocdocument/keduvocdocument.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 01466c0..169a348 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -694,6 +694,15 @@ void KEduVocDocument::setTenseDescriptions( const QStringList &names ) setModified(true); } +// works if const is removed +// int KEduVocDocument::indexOfIdentifier( const QString &name ) const +// { +// for (int i = 0; i < identifierCount(); i++) +// if (identifier(i).locale() == name) +// return i; +// return -1; +// } + void KEduVocDocument::removeIdentifier( int index ) { -- 2.47.3