+
+ // Recent Files
+ int aMenuId = createMenu( tr( "MEN_RECENT_FILES" ), aPVMnu, -1, 5 );
+ QMenu* aMenu = menuMgr()->findMenu( aMenuId );
+ Implementation->RecentFilesMenu = new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
+ connect( Implementation->RecentFilesMenu, SIGNAL( serverConnectFailed() ),
+ &Implementation->Core, SLOT( makeDefaultConnectionIfNoneExists() ) );
+ QList<QAction*> anActns = aMenu->actions();
+ for (int i = 0; i < anActns.size(); ++i)
+ createMenu( anActns.at(i), aMenuId );
+
+