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

List:       kde-commits
Subject:    extragear/graphics/digikam/utilities/fuzzysearch
From:       Andi Clemens <andi.clemens () gmx ! net>
Date:       2009-06-10 19:10:12
Message-ID: 1244661012.714566.8727.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 979921 by aclemens:

It seems to take some time until the model for the AlbumSelectComboBox
is loaded, therefore we don't see the noSelectionText.
Adding a slot that is called after all albums are loaded fixes the
problem.

 M  +8 -1      findduplicatesview.cpp  
 M  +1 -0      findduplicatesview.h  


--- trunk/extragear/graphics/digikam/utilities/fuzzysearch/findduplicatesview.cpp \
#979920:979921 @@ -138,7 +138,6 @@
     d->excludeAlbumsCB = new AlbumSelectComboBox;
     d->excludeAlbumsCB->setSizePolicy(QSizePolicy::Expanding, \
QSizePolicy::Expanding);  d->excludeAlbumsCB->setDefaultAlbumModels();
-    d->excludeAlbumsCB->setNoSelectionText(i18nc("No albums selected", "None"));
 
     QString excludeAlbumsStr = i18n("Exclude albums or collections, to speed up the \
accurate search method.");  d->excludeAlbumsCB->setWhatsThis(excludeAlbumsStr);
@@ -178,6 +177,9 @@
     connect(AlbumManager::instance(), SIGNAL(signalAllAlbumsLoaded()),
             this, SLOT(populateTreeView()));
 
+    connect(AlbumManager::instance(), SIGNAL(signalAllAlbumsLoaded()),
+            this, SLOT(slotUpdateAlbumSelectBox()));
+
     connect(AlbumManager::instance(), SIGNAL(signalAlbumAdded(Album*)),
             this, SLOT(slotAlbumAdded(Album*)));
 
@@ -230,7 +232,12 @@
 
     d->listView->sortByColumn(1, Qt::DescendingOrder);
     d->listView->resizeColumnToContents(0);
+}
+
+void FindDuplicatesView::slotUpdateAlbumSelectBox()
+{
     d->excludeAlbumsCB->view()->expandToDepth(1);
+    d->excludeAlbumsCB->setNoSelectionText(i18nc("No albums selected", "None"));
 }
 
 void FindDuplicatesView::slotAlbumAdded(Album* a)
--- trunk/extragear/graphics/digikam/utilities/fuzzysearch/findduplicatesview.h \
#979920:979921 @@ -80,6 +80,7 @@
     void slotThumbnailLoaded(const LoadingDescription&, const QPixmap&);
 
     void slotExcludeSelectionChanged(Album*, Qt::CheckState);
+    void slotUpdateAlbumSelectBox();
 
 private:
 


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

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