comparison main/MainWindow.cpp @ 467:a373a9cdbe13 integration_library

Update of MainWindow.cpp
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Tue, 23 Aug 2011 13:07:03 +0100
parents 33d0632255b5
children e5c6aed2bf6b
comparison
equal deleted inserted replaced
466:33d0632255b5 467:a373a9cdbe13
445 action->setStatusTip(tr("Open or import a file from a remote URL")); 445 action->setStatusTip(tr("Open or import a file from a remote URL"));
446 connect(action, SIGNAL(triggered()), this, SLOT(openLocation())); 446 connect(action, SIGNAL(triggered()), this, SLOT(openLocation()));
447 m_keyReference->registerShortcut(action); 447 m_keyReference->registerShortcut(action);
448 m_fileMenu->addAction(action); 448 m_fileMenu->addAction(action);
449 449
450 m_recentFilesMenu = menu->addMenu(tr("Open &Recent")); 450 m_recentFilesMenu = m_fileMenu->addMenu(tr("Open &Recent"));
451 m_recentFilesMenu->setTearOffEnabled(true); 451 m_recentFilesMenu->setTearOffEnabled(true);
452 setupRecentFilesMenu(); 452 setupRecentFilesMenu();
453 connect(&m_recentFiles, SIGNAL(recentChanged()), 453 connect(&m_recentFiles, SIGNAL(recentChanged()),
454 this, SLOT(setupRecentFilesMenu())); 454 this, SLOT(setupRecentFilesMenu()));
455 455