| 29 | connect(&m_system, &QAction::triggered, this, [this] { QString file = QFileDialog::getOpenFileName(this, m_title, m_dir, m_type); if (!file.isEmpty()) QLineEdit::setText(QDir::toNativeSeparators(file)); }); |
| 30 | } |
| 31 | |
| 32 | void setDialog(const QString& title, const QString type, const QString dir) |
| 33 | { |
| 34 | m_system.setText(title); |
| 35 | m_title = title; |
| 36 | m_type = type; |
| 37 | m_dir = dir; |
| 38 | } |
| 39 | |
| 40 | void setFiles(const QList<QString>& sounds) |