[Digikam-devel] extragear/graphics/digikam

Tom Albers tomalbers at kde.nl
Tue Jul 19 17:57:46 BST 2005


SVN commit 436391 by toma:

OU Item: 3.2 Remove Checkbox for "saving automatically"
CCMAIL:digikam-devel at kde.org



 M  +0 -1      TODO  
 M  +4 -18     digikam/imagedescedit.cpp  
 M  +0 -1      digikam/imagedescedit.h  


--- trunk/extragear/graphics/digikam/TODO #436390:436391
@@ -22,7 +22,6 @@
 (http://www.uni-koblenz.de/~trilliti/digikam_tagging/main.html). 
 Following items have been agreed on (rest are in dispute):
 1.2 Show which tags are already assigned
-3.2 Remove Checkbox for "saving automatically"
 3.3.2 Select new tags automatically
 3.3.3 Checking checkboxes for assigning tags
 4. Editing tags when in image editor
--- trunk/extragear/graphics/digikam/digikam/imagedescedit.cpp #436390:436391
@@ -114,17 +114,6 @@
     m_tagsView = new QListView(tagsBox);
     topLayout->addMultiCellWidget(tagsBox, 0, 1, 1, 1);
 
-    m_autoSaveBox = new QCheckBox(i18n("Automatically save comments and tags "
-                                       "when navigating between items"),
-                                  plainPage());
-    topLayout->addMultiCellWidget(m_autoSaveBox, 2, 2, 0, 1);
-
-    if (singleMode)
-       m_autoSaveBox->hide();
-
-    kapp->config()->setGroup("Image Description Dialog");
-    m_autoSaveBox->setChecked(kapp->config()->readBoolEntry("Auto Save", true));
-
     m_tagsView->addColumn(i18n( "Tags" ));
     m_tagsView->header()->hide();
     m_tagsView->setSelectionMode(QListView::Single);
@@ -174,9 +163,6 @@
     {
         (*it)->removeExtraData(this);
     }
-    
-    kapp->config()->setGroup("Image Description Dialog");
-    kapp->config()->writeEntry("Auto Save", m_autoSaveBox->isChecked());
 
     saveDialogSize("Image Description Dialog");
 }
@@ -264,8 +250,8 @@
     if (!m_currItem)
         return;
 
-    if (m_autoSaveBox->isChecked())
-        slotApply();
+    // Save the data
+    slotApply();
 
     m_currItem = dynamic_cast<AlbumIconItem*>(m_currItem->nextItem());
     m_currItem->setSelected(true);
@@ -279,8 +265,8 @@
     if (!m_currItem)
         return;
 
-    if (m_autoSaveBox->isChecked())
-        slotApply();
+    // Save the data
+    slotApply();
 
     m_currItem = dynamic_cast<AlbumIconItem*>(m_currItem->prevItem());
     m_currItem->setSelected(true);
--- trunk/extragear/graphics/digikam/digikam/imagedescedit.h #436390:436391
@@ -68,7 +68,6 @@
     QLabel        *m_nameLabel;
     KTextEdit     *m_commentsEdit;
     QListView     *m_tagsView;
-    QCheckBox     *m_autoSaveBox;
     bool           m_modified;
 
     void tagNew(TAlbum* parAlbum);



More information about the Digikam-devel mailing list