Skip to content

Commit

Permalink
drag from tree operationnal
Browse files Browse the repository at this point in the history
  • Loading branch information
LafCorentin committed Aug 6, 2020
1 parent e3d069e commit 4d0ccae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Expand Up @@ -52,6 +52,13 @@ namespace MappingView {

//==============================================================================

MappingViewEditingModel::MappingViewEditingModel(QObject *pParent) :
QStandardItemModel(pParent)
{
}

//==============================================================================

static const char *MappingViewEdittingMimeType = "opencor/mapping-view-editting";

//==============================================================================
Expand Down Expand Up @@ -265,7 +272,7 @@ void MappingViewEditingWidget::populateTree()
for (ObjRef<iface::cellml_api::CellMLVariable> componentVariable = componentVariablesIter->nextVariable();
componentVariable != nullptr; componentVariable = componentVariablesIter->nextVariable()) {

QStandardItem *variableItem = new QStandardItem(QString::fromStdWString(componentVariable->name()));
QStandardItem *variableItem = new QStandardItem(QString::fromStdWString(component->name())+"/"+QString::fromStdWString(componentVariable->name()));

componentItem->appendRow(variableItem);
}
Expand Down
Expand Up @@ -74,6 +74,7 @@ class MappingViewEditingModel : public QStandardItemModel

QStringList mimeTypes() const override;
QMimeData * mimeData(const QModelIndexList &pIndexes) const override;

};


Expand Down

0 comments on commit 4d0ccae

Please sign in to comment.