~ubuntu-branches/ubuntu/maverick/digikam/maverick

« back to all changes in this revision

Viewing changes to digikam/tagfolderview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Luka Renko
  • Date: 2009-03-17 23:07:56 UTC
  • mfrom: (1.2.20 upstream) (3.1.4 experimental)
  • Revision ID: james.westby@ubuntu.com-20090317230756-db5b8rqjwb2j35e5
Tags: 2:0.10.0-1ubuntu1
* Remaining changes to Debian (committed to Debian SVN):
  - Depends: kde-icons-oxygen dropped (included through kdelibs)
  - Recommends: kipi-plugins added (provides major functionality)
  - debian/digikamthemedesigner.manpage: add missing manpage
* Remaning change to Debian:
  - Section: devel for -dbg package (no debug in Jaunty)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include <kiconloader.h>
41
41
#include <kapplication.h>
42
42
#include <kmessagebox.h>
 
43
#include <kstringhandler.h>
43
44
 
44
45
// Local includes.
45
46
 
82
83
    void    setOpen(bool o);
83
84
    void    setCount(int count);
84
85
    int     count();
 
86
    int     compare(Q3ListViewItem *i, int col, bool ascending) const;
 
87
 
85
88
 
86
89
private:
87
90
 
90
93
    TAlbum *m_album;
91
94
};
92
95
 
 
96
int TagFolderViewItem::compare(Q3ListViewItem *i, int col, bool ascending) const
 
97
{
 
98
    return KStringHandler::naturalCompare(key(col, ascending), i->key(col, ascending));
 
99
}
 
100
 
93
101
TagFolderViewItem::TagFolderViewItem(Q3ListView *parent, TAlbum *album)
94
102
                 : FolderItem(parent, album->title())
95
103
{
921
929
            {
922
930
                KMenu popMenu(this);
923
931
                popMenu.addTitle(SmallIcon("digikam"), i18n("My Tags"));
924
 
                QAction *setAction = popMenu.addAction(i18n("Set as Tag Thumbnail"));
 
932
                QAction *setAction = 0;
 
933
                if (imageIDs.count() == 1)
 
934
                    setAction = popMenu.addAction(i18n("Set as Tag Thumbnail"));
925
935
                popMenu.addSeparator();
926
936
                popMenu.addAction( SmallIcon("dialog-cancel"), i18n("C&ancel") );
927
937