~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/recentlyusedmenu.cpp

  • Committer: Adam Reichold
  • Date: 2017-05-01 20:35:45 UTC
  • Revision ID: adam.reichold@t-online.de-20170501203545-qsya82y2ace16x2b
Fix building with Qt4 after latest round of merges.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
            removeAction(action);
57
57
            m_openActionGroup->removeAction(action);
58
58
 
59
 
            insertAction(actions().constFirst(), action);
 
59
            insertAction(actions().at(0), action);
60
60
            m_openActionGroup->addAction(action);
61
61
 
62
62
            return;
65
65
 
66
66
    if(m_openActionGroup->actions().count() >= m_count)
67
67
    {
68
 
        QAction* first = m_openActionGroup->actions().constFirst();
 
68
        QAction* first = m_openActionGroup->actions().at(0);
69
69
 
70
70
        removeAction(first);
71
71
        m_openActionGroup->removeAction(first);
77
77
    action->setToolTip(fileInfo.absoluteFilePath());
78
78
    action->setData(fileInfo.absoluteFilePath());
79
79
 
80
 
    insertAction(actions().constFirst(), action);
 
80
    insertAction(actions().at(0), action);
81
81
    m_openActionGroup->addAction(action);
82
82
}
83
83