~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/model.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:
84
84
        Q_OBJECT
85
85
 
86
86
    public:
87
 
        Annotation() : QObject() {}
 
87
        Annotation(QObject* parent = 0) : QObject(parent) {}
88
88
        virtual ~Annotation() {}
89
89
 
90
90
        virtual QRectF boundary() const = 0;
102
102
        Q_OBJECT
103
103
 
104
104
    public:
105
 
        FormField() : QObject() {}
 
105
        FormField(QObject* parent = 0) : QObject(parent) {}
106
106
        virtual ~FormField() {}
107
107
 
108
108
        virtual QRectF boundary() const = 0;
122
122
 
123
123
        virtual QSizeF size() const = 0;
124
124
 
125
 
        virtual QImage render(qreal horizontalResolution = 72.0, qreal verticalResolution = 72.0, Rotation rotation = RotateBy0, const QRect& boundingRect = QRect()) const = 0;
 
125
        virtual QImage render(qreal horizontalResolution = 72.0, qreal verticalResolution = 72.0, Rotation rotation = RotateBy0, QRect boundingRect = QRect()) const = 0;
126
126
 
127
127
        virtual QString label() const { return QString(); }
128
128