Logo Search packages:      
Sourcecode: sailcut version File versions  Download package

void CFormMain::makeMenuMru (  )  [protected]

Creates the "Open Recent" menu from the Most Recently Used files list.

Definition at line 204 of file formmain.cpp.

References menuRecent, CPrefs::mruSaildef, prefs, and slotOpenRecent().

Referenced by fileAccess(), show(), and slotOpenRecent().

{
    menuRecent->clear();

    for ( unsigned int i = 0; i < prefs->mruSaildef.size(); i++)
    {
        menuRecent->addAction( prefs->mruSaildef[i], this, SLOT( slotOpenRecent() ) )->setData(i);
    }
}


Generated by  Doxygen 1.6.0   Back to index