~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to digikam/addtagslineedit.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    TagModelCompletion();
52
52
 
53
 
    void setModel(TagModel *model);
54
 
    TagModel *model() const;
 
53
    void setModel(TagModel* model);
 
54
    TagModel* model() const;
55
55
};
56
56
 
57
57
class TaggingAction
87
87
               m_tagName == other.m_tagName;
88
88
    }
89
89
 
90
 
    Type type() const              { return m_type; }
91
 
    bool isValid() const           { return m_type != NoAction; }
92
 
    bool shallAssignTag() const    { return m_type == AssignTag; }
93
 
    bool shallCreateNewTag() const { return m_type == CreateNewTag; }
 
90
    Type type() const
 
91
    {
 
92
        return m_type;
 
93
    }
 
94
    bool isValid() const
 
95
    {
 
96
        return m_type != NoAction;
 
97
    }
 
98
    bool shallAssignTag() const
 
99
    {
 
100
        return m_type == AssignTag;
 
101
    }
 
102
    bool shallCreateNewTag() const
 
103
    {
 
104
        return m_type == CreateNewTag;
 
105
    }
94
106
 
95
107
    /// If shallAssignTag(), returns the tag id
96
 
    int tagId() const          { return m_tagId; }
 
108
    int tagId() const
 
109
    {
 
110
        return m_tagId;
 
111
    }
97
112
 
98
113
    /// If shallCreateNewTag(), returns the tag name and the parent tag id, 0 for toplevel tag
99
 
    QString newTagName() const { return m_tagName; }
100
 
    int parentTagId() const    { return m_tagId; }
 
114
    QString newTagName() const
 
115
    {
 
116
        return m_tagName;
 
117
    }
 
118
    int parentTagId() const
 
119
    {
 
120
        return m_tagId;
 
121
    }
101
122
 
102
123
protected:
103
124