]> Git trees. - libqmvoc.git/commitdiff
fix krazy check for inline methods
authorJeremy Paul Whiting <jpwhiting@kde.org>
Thu, 28 Jun 2007 03:08:05 +0000 (03:08 +0000)
committerJeremy Paul Whiting <jpwhiting@kde.org>
Thu, 28 Jun 2007 03:08:05 +0000 (03:08 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=681145

kdeeduui/kdeeduglossary.cpp
kdeeduui/kdeeduglossary.h

index 088192adc6600ba86f14af68020d35bf47733d0a..eb50f83e2e2daccd6ac7e3e3ba96be9cec6655b9 100644 (file)
@@ -276,6 +276,41 @@ QList<GlossaryItem*> Glossary::readItems( QDomDocument &itemDocument )
        return list;
 }
 
+void Glossary::addItem( GlossaryItem* item )
+{
+    m_itemlist.append( item );
+}
+
+QList<GlossaryItem*> Glossary::itemlist()const
+{
+    return m_itemlist;
+}
+
+void Glossary::clear()
+{
+    m_itemlist.clear();
+}
+
+QString Glossary::name()const
+{
+    return m_name;
+}
+
+void Glossary::setItemlist( QList<GlossaryItem*> 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"
index 53ca4d1c1c76d9c02d7238d8d3458dc68185f5d2..50f6223f66e7dfcba560d25ed13847ac00182701 100644 (file)
@@ -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<GlossaryItem*> itemlist()const{
-                       return m_itemlist;
-               }
+               QList<GlossaryItem*> 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<GlossaryItem*> list ){
-                       m_itemlist = list;
-               }
+               void setItemlist( QList<GlossaryItem*> 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.