~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/recentlyclosedmenu.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:
44
44
{
45
45
    if(m_tabActionGroup->actions().count() >= m_count)
46
46
    {
47
 
        QAction* first = m_tabActionGroup->actions().constFirst();
 
47
        QAction* first = m_tabActionGroup->actions().at(0);
48
48
 
49
49
        removeAction(first);
50
50
        m_tabActionGroup->removeAction(first);
52
52
        first->parent()->deleteLater();
53
53
    }
54
54
 
55
 
    insertAction(actions().constFirst(), tabAction);
 
55
    insertAction(actions().at(0), tabAction);
56
56
    m_tabActionGroup->addAction(tabAction);
57
57
}
58
58