~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/plugins/generic/storagenotesplugin/tagsmodel.cpp

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
 
117
117
void TagModel::clear()
118
118
{
 
119
        beginResetModel();
119
120
        stringList.clear();
120
 
        reset();
 
121
        endResetModel();
121
122
}
122
123
 
123
124
QModelIndex TagModel::indexByTag(const QString& tag) const
144
145
 
145
146
////--------NoteModel---------------------
146
147
NoteModel::NoteModel(QObject *parent) : QAbstractListModel(parent)
147
 
{  
 
148
{
148
149
}
149
150
 
150
151
int NoteModel::rowCount(const QModelIndex &/*parent*/) const
193
194
 
194
195
void NoteModel::clear()
195
196
{
 
197
        beginResetModel();
196
198
        notesList.clear();
197
 
        reset();
 
199
        endResetModel();
198
200
}
199
201
 
200
202
void NoteModel::editNote(const QDomElement& note, const QModelIndex &index)
262
264
        QStringList tags = index.data(NoteModel::TagRole).toString().split(" ");
263
265
        return  tags.contains(filter, Qt::CaseInsensitive);
264
266
}
265