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

List:       kde-commits
Subject:    extragear/office/tellico/src/fetch
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2010-01-01 21:07:36
Message-ID: 1262380056.909788.15006.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1068704 by rstephenson:

remove fetch images option, just always grab it

 M  +0 -13     discogsfetcher.cpp  
 M  +0 -3      discogsfetcher.h  


--- trunk/extragear/office/tellico/src/fetch/discogsfetcher.cpp #1068703:1068704
@@ -73,7 +73,6 @@
   if(!k.isEmpty()) {
     m_apiKey = k;
   }
-  m_fetchImages = config_.readEntry("Fetch Images", true);
 }
 
 void DiscogsFetcher::resetSearch() {
@@ -254,14 +253,6 @@
   m_apiKeyEdit->setWhatsThis(w);
   label->setBuddy(m_apiKeyEdit);
 
-  m_fetchImageCheck = new QCheckBox(i18n("Download cover &image"), optionsWidget());
-  connect(m_fetchImageCheck, SIGNAL(clicked()), SLOT(slotSetModified()));
-  ++row;
-  l->addWidget(m_fetchImageCheck, row, 0, 1, 2);
-  w = i18n("The cover image may be downloaded as well. However, too many large images in the "
-           "collection may degrade performance.");
-  m_fetchImageCheck->setWhatsThis(w);
-
   l->setRowStretch(++row, 10);
 
   // now add additional fields widget
@@ -273,9 +264,6 @@
     if(fetcher_->m_apiKey != QLatin1String(DISCOGS_API_KEY)) {
       m_apiKeyEdit->setText(fetcher_->m_apiKey);
     }
-    m_fetchImageCheck->setChecked(fetcher_->m_fetchImages);
-  } else {
-    m_fetchImageCheck->setChecked(true);
   }
 }
 
@@ -284,7 +272,6 @@
   if(!apiKey.isEmpty()) {
     config_.writeEntry("API Key", apiKey);
   }
-  config_.writeEntry("Fetch Images", m_fetchImageCheck->isChecked());
 }
 
 QString DiscogsFetcher::ConfigWidget::preferredName() const {
--- trunk/extragear/office/tellico/src/fetch/discogsfetcher.h #1068703:1068704
@@ -54,7 +54,6 @@
   /**
    */
   virtual QString source() const;
-  // amazon can search title or person
   virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == Keyword; }
   virtual Type type() const { return Discogs; }
   virtual bool canFetch(int type) const;
@@ -72,7 +71,6 @@
     virtual QString preferredName() const;
   private:
     KLineEdit* m_apiKeyEdit;
-    QCheckBox* m_fetchImageCheck;
   };
   friend class ConfigWidget;
 
@@ -90,7 +88,6 @@
   int m_start;
   int m_total;
 
-  bool m_fetchImages;
   QString m_apiKey;
 };
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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