~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/tileitem.cpp

  • 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
 
85
85
void TileItem::dropCachedPixmaps(PageItem* page)
86
86
{
87
 
    foreach(CacheKey key, s_cache.keys())
 
87
    foreach(const CacheKey& key, s_cache.keys())
88
88
    {
89
89
        if(key.first == page)
90
90
        {
93
93
    }
94
94
}
95
95
 
96
 
bool TileItem::paint(QPainter* painter, const QPointF& topLeft)
 
96
bool TileItem::paint(QPainter* painter, QPointF topLeft)
97
97
{
98
98
    const QPixmap& pixmap = takePixmap();
99
99
 
201
201
}
202
202
 
203
203
void TileItem::on_finished(const RenderParam& renderParam,
204
 
                             const QRect& rect, bool prefetch,
205
 
                             const QImage& image, const QRectF& cropRect)
 
204
                           const QRect& rect, bool prefetch,
 
205
                           const QImage& image, const QRectF& cropRect)
206
206
{
207
207
    if(m_page->m_renderParam != renderParam || m_rect != rect)
208
208
    {