[KPhotoAlbum] Three issues with KDE4 KPA

Robert Krawitz rlk at alum.mit.edu
Mon Jul 5 19:27:04 BST 2010


   Date: Tue, 22 Jun 2010 20:40:21 -0400
   From: Robert Krawitz <rlk at alum.mit.edu>

   3) By default, items in category view are listed in reverse order
      (e. g. folder names or keywords sorted z-a).

This fixes it.  Apparently sorting by default is in descending order.

Index: BrowserWidget.cpp
===================================================================
--- BrowserWidget.cpp	(revision 1146320)
+++ BrowserWidget.cpp	(working copy)
@@ -374,6 +374,7 @@
     _treeView->header()->setStretchLastSection(false);
     _treeView->header()->setSortIndicatorShown(true);
     _treeView->setSortingEnabled(true);
+    _treeView->sortByColumn( 0, Qt::AscendingOrder );
     _stack->addWidget( _treeView );
 
     // Do not give focus to the widgets when they are scrolled with the wheel.

Another thing I've noticed is that if you don't explicitly sort in the
annotation dialog, there are three problems: the choices are in random
order, they aren't presented as a tree view, and you can't drag and
drop to create subcategories.  However, as soon as I clicked sort on
the keywords, all of the other classifications (locations and people)
were also sorted and correctly tree-ified.

-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton



More information about the Kphotoalbum mailing list