| 527 | } |
| 528 | |
| 529 | void MainWindow::openRecentFile() |
| 530 | { |
| 531 | QAction *action = qobject_cast<QAction *>(sender()); |
| 532 | if (action) |
| 533 | { |
| 534 | QStringList fileList = QStringList(action->data().toString()); |
| 535 | ui.playlistTreeWidget->loadFiles(fileList); |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | /** A new item has been selected. Update all the controls (some might be enabled/disabled for this |
| 540 | * type of object and the values probably changed). |