[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    make_it_cool: kdeedu/khangman/khangman
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2004-04-08 14:49:24
Message-ID: 20040408144924.8614C9A13 () office ! kde ! org
[Download RAW message or body]

CVS commit by annma: 

see what languages are there and write them in KNewStuff config file so to not download them twice


  M +9 -0      khangman.cpp   1.124.2.21
  M +1 -1      khangman.h   1.62.2.10


--- kdeedu/khangman/khangman/khangman.cpp  #1.124.2.20:1.124.2.21
@@ -802,4 +802,13 @@ void KHangMan::setLanguages()
                 }
         }
+        //write the present languages in config so they cannot be downloaded
+        KConfig *config=kapp->config();
+        config->setGroup("KNewStuffStatus");
+        for (uint i=0;  i<m_languages.count(); i++)
+        {
+                QString tmp = m_languages[i];
+                if (!config->readEntry(tmp))
+                        config->writeEntry(tmp, "Thu Apr 8 2004");
+        }
         //we look in $KDEDIR/share/locale/all_languages from /kdelibs/kdecore/all_languages
         //to find the name of the country

--- kdeedu/khangman/khangman/khangman.h  #1.62.2.9:1.62.2.10
@@ -208,5 +208,5 @@ private slots:
     void updateSettings();
 
-  private:
+  protected:
     ///Set up the actions for the menus
     void setupActions();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic