21 #include "ui_matrixselectiondialog.h" 30 ui->treeView->setModel(tree_model_);
45 return selected_item_;
58 void MatrixSelectionDialog::on_buttonBox_accepted()
60 selected_item_ = tree_model_->
getItem(ui->treeView->currentIndex());
61 data_keys_ = selected_item_->
keys();
64 if (selected_item_->
type() == TreeItem::ItemType::Matrix)
69 void MatrixSelectionDialog::on_buttonBox_rejected()
TreeItem * GetSelectedItem()
TreeItem::ItemType type() const
MatrixSelectionDialog(QWidget *parent, DatasetTreeModel *model)
void SetModel(DatasetTreeModel *model)
QStringList GetDataKeys()
TreeItem * getItem(const QModelIndex &index) const
void MatrixSelected(QStringList keys)
void ItemSelected(TreeItem *item)