void pcl::modeler::MainWindow::updateRecentProjectActions() { updateRecentActions(recent_project_actions_, recent_projects_); return; }
void pcl::modeler::MainWindow::updateRecentPointCloudActions() { updateRecentActions(recent_pointcloud_actions_, recent_pointclouds_); return; }
ControllerWindow::ControllerWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::ControllerWindow), skins(), model(NULL) { ui->setupUi(this); connect(ui->actionAbout_Qt, &QAction::triggered, qApp, &QApplication::aboutQt); connect(ui->actionQuit, &QAction::triggered, qApp, &QApplication::closeAllWindows); QAction *seperator = ui->menuOpenRecent->actions()[0]; for (size_t i = 0; i < MAX_NUM_OF_RECENT_FILES; i++) { QAction *curr = new QAction(this); curr->setVisible(false); connect(curr, &QAction::triggered, this, &ControllerWindow::openRecentFile); ui->menuOpenRecent->insertAction(seperator, curr); recentList[i] = curr; } updateRecentActions(); }