~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/backend/bookshelfmodel/categoryitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden
  • Date: 2009-11-18 17:30:00 UTC
  • mfrom: (1.3.4 upstream) (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091118173000-endkhjz5qai88tvr
Tags: 2.4-1
* New upstream version 2.4
* debian/control: 
  - Replace incorrect bibletime-data Depends on lib4qt-gui
    with bibletime Depends on libqtgui4 (>= 4.4.0). (Closes: #556209).
  - Add Build-depends: on zlib1g-dev and libcurl4-gnutls-dev 
    (Closes: #556805).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "backend/bookshelfmodel/btbookshelfmodel.h"
20
20
#include "backend/drivers/cswordmoduleinfo.h"
21
21
 
 
22
 
22
23
namespace BookshelfModel {
23
24
 
24
25
class CategoryItem: public Item {
25
 
    Q_DECLARE_TR_FUNCTIONS(CategoryItem);
 
26
        Q_DECLARE_TR_FUNCTIONS(CategoryItem);
26
27
 
27
28
    public:
28
29
        static const Item::Type GROUP_TYPE = Item::ITEM_CATEGORY;
41
42
            return BtBookshelfModel::categoryIcon(m_category);
42
43
        }
43
44
 
44
 
        inline bool fitFor(CSwordModuleInfo *module) {
 
45
        inline bool fitFor(CSwordModuleInfo *module) const {
45
46
            return module->category() == m_category;
46
47
        }
47
48
 
 
49
        bool operator<(const Item &other) const;
 
50
 
48
51
    protected:
49
52
        CSwordModuleInfo::Category m_category;
50
53
};