~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/pageitem.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:
52
52
 
53
53
const qreal proxyPadding = 2.0;
54
54
 
55
 
inline bool modifiersAreActive(const QGraphicsSceneMouseEvent* event, const Qt::KeyboardModifiers& modifiers)
 
55
inline bool modifiersAreActive(const QGraphicsSceneMouseEvent* event, Qt::KeyboardModifiers modifiers)
56
56
{
57
57
    if(modifiers == Qt::NoModifier)
58
58
    {
770
770
    m_formFields = formFields;
771
771
}
772
772
 
773
 
void PageItem::copyToClipboard(const QPoint& screenPos)
 
773
void PageItem::copyToClipboard(QPoint screenPos)
774
774
{
775
775
    QMenu menu;
776
776
 
823
823
    }
824
824
}
825
825
 
826
 
void PageItem::addAnnotation(const QPoint& screenPos)
 
826
void PageItem::addAnnotation(QPoint screenPos)
827
827
{
828
828
    if(m_page->canAddAndRemoveAnnotations())
829
829
    {
866
866
    }
867
867
}
868
868
 
869
 
void PageItem::showLinkContextMenu(Model::Link* link, const QPoint& screenPos)
 
869
void PageItem::showLinkContextMenu(Model::Link* link, QPoint screenPos)
870
870
{
871
871
    if(link->page == -1)
872
872
    {
890
890
    }
891
891
}
892
892
 
893
 
void PageItem::showAnnotationContextMenu(Model::Annotation* annotation, const QPoint& screenPos)
 
893
void PageItem::showAnnotationContextMenu(Model::Annotation* annotation, QPoint screenPos)
894
894
{
895
895
    if(m_page->canAddAndRemoveAnnotations())
896
896
    {