| 22 | namespace OpenMS |
| 23 | { |
| 24 | OutputDirectory::OutputDirectory(QWidget* parent) |
| 25 | : QWidget(parent), |
| 26 | ui_(new Ui::OutputDirectoryTemplate) |
| 27 | { |
| 28 | ui_->setupUi(this); |
| 29 | QCompleter* completer = new QCompleter(this); |
| 30 | QFileSystemModel* dir_model = new QFileSystemModel(completer); |
| 31 | dir_model->setFilter(QDir::AllDirs); |
| 32 | completer->setModel(dir_model); |
| 33 | ui_->line_edit->setCompleter(completer); |
| 34 | |
| 35 | connect(ui_->browse_button, &QPushButton::clicked, this, &OutputDirectory::showFileDialog); |
| 36 | connect(ui_->line_edit, &QLineEdit::textChanged, this, &OutputDirectory::textEditChanged_); |
| 37 | } |
| 38 | |
| 39 | OutputDirectory::~OutputDirectory() |
| 40 | { |