27 #include <ArmarXGui/gui-plugins/ScenarioManager/gui/ui_openscenarioview.h>
35 ui->treeView->setSortingEnabled(
true);
37 ui->treeView->setItemDelegateForColumn(2, &openButtonDelegate);
38 QObject::connect(&openButtonDelegate, SIGNAL(
buttonClicked(
int,
int, QModelIndex)),
39 this, SLOT(openButtonClicked(
int,
int, QModelIndex)));
50 this->model = model_ptr;
51 ui->treeView->setModel(model_ptr.get());
52 ui->treeView->setColumnWidth(0, 200);
53 ui->treeView->setColumnWidth(1, 300);
56 void OpenScenarioView::openButtonClicked(
int row,
int column, QModelIndex parent)
62 void OpenScenarioView::on_lineEdit_textEdited(
const QString& text)
64 model->setFilterRegExp(QRegExp(text, Qt::CaseInsensitive, QRegExp::FixedString));
65 ui->treeView->expandAll();
68 void OpenScenarioView::on_treeView_doubleClicked(
const QModelIndex&
index)
73 void OpenScenarioView::on_openPackageButton_clicked()