From: Jeremy Paul Whiting Date: Thu, 28 Jun 2007 03:08:05 +0000 (+0000) Subject: fix krazy check for inline methods X-Git-Tag: v3.92.0~59 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=488eacae11fb9ed3eb987d5009c1058c5cabbe28;p=libqmvoc.git fix krazy check for inline methods svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=681145 --- diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 088192a..eb50f83 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -276,6 +276,41 @@ QList Glossary::readItems( QDomDocument &itemDocument ) return list; } +void Glossary::addItem( GlossaryItem* item ) +{ + m_itemlist.append( item ); +} + +QList Glossary::itemlist()const +{ + return m_itemlist; +} + +void Glossary::clear() +{ + m_itemlist.clear(); +} + +QString Glossary::name()const +{ + return m_name; +} + +void Glossary::setItemlist( QList list ) +{ + m_itemlist = list; +} + +QString Glossary::picturePath()const +{ + return m_picturepath; +} + +QString Glossary::backgroundPicture()const +{ + return m_backgroundpicture; +} + GlossaryDialog::GlossaryDialog( QWidget *parent ) : KDialog( parent ), d( new Private( this ) ) { @@ -477,5 +512,38 @@ QString GlossaryItem::parseReferences() const return htmlcode; } +void GlossaryItem::setName( const QString& s ) +{ + m_name = s; +} + +void GlossaryItem::setDesc( const QString& s) +{ + m_desc = s; +} + +void GlossaryItem::setPictures( const QString& s ){ + m_pic = QStringList(s); +} + +QString GlossaryItem::name() const +{ + return m_name; +} + +QString GlossaryItem::desc() const +{ + return m_desc; +} + +QStringList GlossaryItem::ref() const +{ + return m_ref; +} + +QStringList GlossaryItem::pictures() const +{ + return m_pic; +} #include "kdeeduglossary.moc" diff --git a/kdeeduui/kdeeduglossary.h b/kdeeduui/kdeeduglossary.h index 53ca4d1..50f6223 100644 --- a/kdeeduui/kdeeduglossary.h +++ b/kdeeduui/kdeeduglossary.h @@ -47,20 +47,14 @@ class KDEEDUUI_EXPORT Glossary /** * add the item @p item to the glossary */ - void addItem( GlossaryItem* item ){ - m_itemlist.append( item ); - } + void addItem( GlossaryItem* item ); - QList itemlist()const{ - return m_itemlist; - } + QList itemlist()const; /** * clear the Glossary */ - void clear(){ - m_itemlist.clear(); - } + void clear(); /** * does this glossary have items? @@ -76,16 +70,12 @@ class KDEEDUUI_EXPORT Glossary /** * @returns the name of the glossary */ - QString name()const{ - return m_name; - } + QString name()const; /** * sets the internal list of items to @p list */ - void setItemlist( QList list ){ - m_itemlist = list; - } + void setItemlist( QList list ); /** * Every glossaryitem can show pictures. [img src="foo.png] @@ -94,9 +84,7 @@ class KDEEDUUI_EXPORT Glossary */ void setPicturePath( const QString& path ); - QString picturePath()const{ - return m_picturepath; - } + QString picturePath()const; /** * defines which picture to use as the background @@ -109,9 +97,7 @@ class KDEEDUUI_EXPORT Glossary * @return the picuture used as the background in * this background */ - QString backgroundPicture()const{ - return m_backgroundpicture; - } + QString backgroundPicture()const; protected: void init( const KUrl& url, const QString& path ); @@ -172,13 +158,9 @@ class KDEEDUUI_EXPORT GlossaryItem GlossaryItem(){} ~GlossaryItem(){} - void setName( const QString& s ){ - m_name = s; - } + void setName( const QString& s ); - void setDesc( const QString& s){ - m_desc = s; - } + void setDesc( const QString& s); /** * Set the references for the current GlossaryItem to @@ -188,25 +170,15 @@ class KDEEDUUI_EXPORT GlossaryItem */ void setRef( const QStringList& s); - void setPictures( const QString& s ){ - m_pic = QStringList(s); - } + void setPictures( const QString& s ); - QString name() const { - return m_name; - } + QString name() const; - QString desc() const { - return m_desc; - } + QString desc() const; - QStringList ref() const { - return m_ref; - } + QStringList ref() const; - QStringList pictures() const { - return m_pic; - } + QStringList pictures() const; /** * @return the formated HTML code for current item.