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

List:       kde-commits
Subject:    digikam_0_8_branch: kdeextragear-3/digikam/digikam
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2005-04-28 16:51:45
Message-ID: 20050428165145.32D1E666 () office ! kde ! org
[Download RAW message or body]

CVS commit by toma: 

settings->Settings


  M +4 -4      albumdb.cpp   1.17.2.10
  M +2 -2      albumdb.h   1.9.2.7


--- kdeextragear-3/digikam/digikam/albumdb.cpp  #1.17.2.9:1.17.2.10
@@ -183,7 +183,7 @@ void AlbumDB::initDB()
     // Before 0.8 this table did not exist, so we have to check
     // and add it seperately.
-    if (!values.contains("settings"))
+    if (!values.contains("Settings"))
     {
-        if (!execSql( QString("CREATE TABLE settings "
+        if (!execSql( QString("CREATE TABLE Settings "
                               "(keyword TEXT NOT NULL UNIQUE,"
                               "value TEXT);") ))
@@ -432,5 +432,5 @@ void AlbumDB::setSetting(const QString& 
                            const QString& value )
 {
-    execSql( QString("REPLACE into settings VALUES ('%1','%2');")
+    execSql( QString("REPLACE into Settings VALUES ('%1','%2');")
             .arg( escapeString(keyword) )
             .arg( escapeString(value) ));
@@ -756,5 +756,5 @@ QString AlbumDB::getSetting(const QStrin
 {
     QStringList values;
-    execSql( QString("SELECT value FROM settings "
+    execSql( QString("SELECT value FROM Settings "
                      "WHERE keyword='%1';")
             .arg(escapeString(keyword)),

--- kdeextragear-3/digikam/digikam/albumdb.h  #1.9.2.6:1.9.2.7
@@ -80,5 +80,5 @@ public:
     void setDate(PAlbum *album);
     /**
-     * This adds a keyword-value combination to the database settings table 
+     * This adds a keyword-value combination to the database Settings table
      * if the keyword already exists, the value will be replaced with the new
      * value.
@@ -94,5 +94,5 @@ public:
     /**
      * This function returns the value which is stored in the database
-     * (table settings).
+     * (table Settings).
      * @param keyword The keyword for which the value has to be returned.
      * @return The values which belongs to the keyword.


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

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