From: Carsten Niehaus Date: Sun, 24 Jul 2005 14:41:34 +0000 (+0000) Subject: Sorry, I introduced a bug with the last commit, now everything is back to normal X-Git-Tag: v3.4.90~2 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=9866b3246c603cf02f7f7751e6c85c9e65336935;p=libqmvoc.git Sorry, I introduced a bug with the last commit, now everything is back to normal svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=438161 --- diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index d71b127..3b5d279 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -126,15 +126,17 @@ QValueList Glossary::readItems( QDomDocument &itemDocument ) QDomNode nameNode = itemElement.namedItem( "name" ); QDomNode descNode = itemElement.namedItem( "desc" ); + QString picName = itemElement.namedItem( "picture" ).toElement().text(); QDomElement refNode = ( const QDomElement& ) itemElement.namedItem( "references" ).toElement(); QString desc = descNode.toElement().text(); + desc.prepend("[img]"+picName +"[/img]" ); item->setName( i18n( nameNode.toElement( ).text().utf8() ) ); - item->setDesc( item->desc().replace("[b]", "" ) ); + item->setDesc( desc.replace("[b]", "" ) ); item->setDesc( item->desc().replace("[/b]", "" ) ); item->setDesc( item->desc().replace("[i]", "" ) ); item->setDesc( item->desc().replace("[/i]", "" ) );