~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/searchmodel.h

  • Committer: Adam Reichold
  • Date: 2017-04-19 21:01:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2043.
  • Revision ID: adam.reichold@t-online.de-20170419210125-x3ubrcjkdmjzkn5g
Fix usage of QList in the bookmark and search models and various small performance issues reported by the clazy tool using the checks of "level0,level1,level2,no-missing-qobject-macro,no-qstring-allocations,no-copyable-polymorphic,no-ctor-missing-parent-argument,no-reserve-candidates".

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    static SearchModel* s_instance;
96
96
    SearchModel(QObject* parent = 0);
97
97
 
98
 
    QList< DocumentView* > m_views;
 
98
    QVector< DocumentView* > m_views;
99
99
 
100
100
    QModelIndex findView(DocumentView* view) const;
101
101
    QModelIndex findOrInsertView(DocumentView* view);