Skip to content

Commit

Permalink
Bug fixed #1474 #1494
Browse files Browse the repository at this point in the history
- Now you can delete the plot result file from plot variables window.
- Double clicking on the MSL item does not open it multiple times.
- Fixed some of the context menu issues.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8715 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Apr 20, 2011
1 parent 4516d3f commit 2ff4d82
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 24 deletions.
7 changes: 4 additions & 3 deletions OMEdit/OMEditGUI/Component.cpp
Expand Up @@ -375,10 +375,12 @@ void Component::createSelectionBox()
void Component::createActions()
{
// Icon Attributes Action
mpIconAttributesAction = new QAction(tr("Attributes"), this);
mpIconAttributesAction = new QAction(tr("Attributes"), mpGraphicsView);
mpIconAttributesAction->setStatusTip(tr("Shows the item attributes"));
connect(mpIconAttributesAction, SIGNAL(triggered()), SLOT(openIconAttributes()));
// Icon Properties Action
mpIconPropertiesAction = new QAction(QIcon(":/Resources/icons/tool.png"), tr("Properties"), this);
mpIconPropertiesAction = new QAction(QIcon(":/Resources/icons/tool.png"), tr("Properties"), mpGraphicsView);
mpIconPropertiesAction->setStatusTip(tr("Shows the item properties"));
connect(mpIconPropertiesAction, SIGNAL(triggered()), SLOT(openIconProperties()));
}

Expand Down Expand Up @@ -447,7 +449,6 @@ void Component::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
// get the root component, it could be either icon or diagram
Component *pComponent = getRootParentComponent();

this->setSelected(true);
QMenu menu(pComponent->mpGraphicsView->mpParentProjectTab->mpParentProjectTabWidget->mpParentMainWindow);
menu.addAction(pComponent->mpGraphicsView->mpRotateIconAction);
menu.addAction(pComponent->mpGraphicsView->mpRotateAntiIconAction);
Expand Down
41 changes: 36 additions & 5 deletions OMEdit/OMEditGUI/LibraryWidget.cpp
Expand Up @@ -111,15 +111,19 @@ ModelicaTree::~ModelicaTree()
void ModelicaTree::createActions()
{
mpRenameAction = new QAction(QIcon(":/Resources/icons/rename.png"), tr("Rename"), this);
mpRenameAction->setStatusTip(tr("Rename the modelica model"));
connect(mpRenameAction, SIGNAL(triggered()), SLOT(renameClass()));

mpCheckModelAction = new QAction(QIcon(":/Resources/icons/check.png"), tr("Check"), this);
mpCheckModelAction = new QAction(QIcon(":/Resources/icons/check.png"), tr("Check Model"), this);
mpCheckModelAction->setStatusTip(tr("Check the modelica model"));
connect(mpCheckModelAction, SIGNAL(triggered()), SLOT(checkModelicaModel()));

mpFlatModelAction = new QAction(QIcon(":/Resources/icons/flatmodel.png"), tr("Instantiate Model"), this);
mpFlatModelAction->setStatusTip(tr("Instantiates/Flatten the modelica model"));
connect(mpFlatModelAction, SIGNAL(triggered()), SLOT(flatModel()));

mpDeleteAction = new QAction(QIcon(":/Resources/icons/delete.png"), tr("Delete"), this);
mpDeleteAction->setStatusTip(tr("Delete the modelica model"));
connect(mpDeleteAction, SIGNAL(triggered()), SLOT(deleteNodeTriggered()));
}

Expand Down Expand Up @@ -265,8 +269,8 @@ void ModelicaTree::showContextMenu(QPoint point)
QMenu menu(mpParentLibraryWidget);
menu.addAction(mpRenameAction);
menu.addAction(mpDeleteAction);
menu.addAction(mpFlatModelAction);
menu.addAction(mpCheckModelAction);
menu.addAction(mpFlatModelAction);
point.setY(point.y() + adjust);
menu.exec(mapToGlobal(point));
}
Expand Down Expand Up @@ -481,15 +485,19 @@ LibraryTree::~LibraryTree()
void LibraryTree::createActions()
{
mpShowComponentAction = new QAction(QIcon(":/Resources/icons/model.png"), tr("Show Component"), this);
mpShowComponentAction->setStatusTip(tr("Show the component"));
connect(mpShowComponentAction, SIGNAL(triggered()), SLOT(showComponent()));

mpViewDocumentationAction = new QAction(QIcon(":/Resources/icons/info-icon.png"), tr("View Documentation"), this);
mpViewDocumentationAction->setStatusTip(tr("View component documentation"));
connect(mpViewDocumentationAction, SIGNAL(triggered()), SLOT(viewDocumentation()));

mpCheckModelAction = new QAction(QIcon(":/Resources/icons/check.png"), tr("Check"), this);
mpCheckModelAction = new QAction(QIcon(":/Resources/icons/check.png"), tr("Check Model"), this);
mpCheckModelAction->setStatusTip(tr("Check the modelica model"));
connect(mpCheckModelAction, SIGNAL(triggered()), SLOT(checkLibraryModel()));

mpFlatModelAction = new QAction(QIcon(":/Resources/icons/check.png"), tr("Instantiate"), this);
mpFlatModelAction = new QAction(QIcon(":/Resources/icons/flatmodel.png"), tr("Instantiate Model"), this);
mpFlatModelAction->setStatusTip(tr("Instantiates/Flatten the modelica model"));
connect(mpFlatModelAction, SIGNAL(triggered()), SLOT(flatModel()));
}

Expand Down Expand Up @@ -731,9 +739,32 @@ void LibraryTree::showComponent(QTreeWidgetItem *item, int column)

void LibraryTree::showComponent()
{
bool isFound = false;
ProjectTabWidget *pProjectTabs = mpParentLibraryWidget->mpParentMainWindow->mpProjectTabs;
setCursor(Qt::WaitCursor);
pProjectTabs->addDiagramViewTab(mpParentLibraryWidget->mSelectedLibraryNode, 0);
ProjectTab *pCurrentTab = pProjectTabs->getTabByName(dynamic_cast<LibraryTreeNode*>(mpParentLibraryWidget->mSelectedLibraryNode)->mNameStructure);
if (pCurrentTab)
{
pProjectTabs->setCurrentWidget(pCurrentTab);
isFound = true;
}
// if the tab is closed by user then reopen it and set it as current tab
if (!isFound)
{
pCurrentTab = pProjectTabs->getRemovedTabByName(dynamic_cast<LibraryTreeNode*>(mpParentLibraryWidget->mSelectedLibraryNode)->mNameStructure);
if (pCurrentTab)
{
pProjectTabs->addTab(pCurrentTab, pCurrentTab->mModelName);
pProjectTabs->setCurrentWidget(pCurrentTab);
pProjectTabs->mRemovedTabsList.removeOne(pCurrentTab);
isFound = true;
}
}
// if the tab is not found in current tabs and removed tabs then user has loaded a new model, just open it then
if (!isFound)
{
pProjectTabs->addDiagramViewTab(mpParentLibraryWidget->mSelectedLibraryNode, 0);
}
unsetCursor();
}

Expand Down
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Makefile.Debug
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: OMEdit
# Generated by qmake (2.01a) (Qt 4.7.0) on: fr 15. apr 18:31:32 2011
# Generated by qmake (2.01a) (Qt 4.7.0) on: on 20. apr 11:20:46 2011
# Project: OMEditGUI.pro
# Template: app
#############################################################################
Expand Down Expand Up @@ -192,7 +192,7 @@ debug/rc_omedit_res.o: rc_omedit.rc
windres -i rc_omedit.rc -o debug\rc_omedit_res.o --include-dir=. $(DEFINES)

qmake: FORCE
@$(QMAKE) -spec ..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++ CONFIG+=release -o Makefile.Debug OMEditGUI.pro
@$(QMAKE) -spec ..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++ -o Makefile.Debug OMEditGUI.pro

dist:
$(ZIP) OMEdit.zip $(SOURCES) $(DIST) OMEditGUI.pro ..\..\..\..\Qt\2010.05\qt\mkspecs\qconfig.pri ..\..\..\..\Qt\2010.05\qt\mkspecs\modules\qt_webkit_version.pri ..\..\..\..\Qt\2010.05\qt\mkspecs\features\qt_functions.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\qt_config.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\exclusive_builds.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\default_pre.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\default_pre.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\debug.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\debug_and_release.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\default_post.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\default_post.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\build_pass.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\warn_off.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\rtti.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\exceptions.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\stl.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\shared.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\qt.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\thread.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\moc.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\windows.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\resources.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\uic.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\yacc.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\lex.prf c:\Qt\2010.05\qt\lib\qtmaind.prl HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
Expand Down
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Makefile.Release
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: OMEdit
# Generated by qmake (2.01a) (Qt 4.7.0) on: fr 15. apr 18:31:32 2011
# Generated by qmake (2.01a) (Qt 4.7.0) on: on 20. apr 11:20:47 2011
# Project: OMEditGUI.pro
# Template: app
#############################################################################
Expand Down Expand Up @@ -192,7 +192,7 @@ release/rc_omedit_res.o: rc_omedit.rc
windres -i rc_omedit.rc -o release\rc_omedit_res.o --include-dir=. $(DEFINES)

qmake: FORCE
@$(QMAKE) -spec ..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++ CONFIG+=release -o Makefile.Release OMEditGUI.pro
@$(QMAKE) -spec ..\..\..\..\Qt\2010.05\qt\mkspecs\win32-g++ -o Makefile.Release OMEditGUI.pro

dist:
$(ZIP) OMEdit.zip $(SOURCES) $(DIST) OMEditGUI.pro ..\..\..\..\Qt\2010.05\qt\mkspecs\qconfig.pri ..\..\..\..\Qt\2010.05\qt\mkspecs\modules\qt_webkit_version.pri ..\..\..\..\Qt\2010.05\qt\mkspecs\features\qt_functions.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\qt_config.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\exclusive_builds.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\default_pre.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\default_pre.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\release.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\debug_and_release.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\default_post.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\default_post.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\build_pass.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\warn_off.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\rtti.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\exceptions.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\stl.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\shared.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\qt.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\thread.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\moc.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\win32\windows.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\resources.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\uic.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\yacc.prf ..\..\..\..\Qt\2010.05\qt\mkspecs\features\lex.prf c:\Qt\2010.05\qt\lib\qtmain.prl HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
Expand Down
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/ModelWidget.cpp
Expand Up @@ -249,6 +249,8 @@ CheckModelWidget::CheckModelWidget(QString name, QString nameStructure, MainWind

mpCheckResultLabel = new QTextEdit(tr(""));
mpCheckResultLabel->setReadOnly(true);
mpCheckResultLabel->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
mpCheckResultLabel->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
mpCheckResultLabel->setText(StringHandler::removeFirstLastQuotes(
mpParentMainWindow->mpOMCProxy->checkModel(mNameStructure)));
// Create the button
Expand Down Expand Up @@ -278,6 +280,8 @@ FlatModelWidget::FlatModelWidget(QString name, QString nameStructure, MainWindow
setModal(true);

mpText = new QTextEdit(tr(""));
mpText->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
mpText->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
QString str = mpParentMainWindow->mpOMCProxy->instantiateModel(mNameStructure);
ModelicaTextHighlighter *highlighter = new ModelicaTextHighlighter(pParent->mpOptionsWidget->mpModelicaTextSettings,mpText->document());
mpText->setPlainText(str.length() ? str : "Instantiation of " + name + " failed");
Expand Down
40 changes: 34 additions & 6 deletions OMEdit/OMEditGUI/PlotWidget.cpp
Expand Up @@ -101,6 +101,8 @@ PlotTree::PlotTree(PlotWidget *pParent)
setHeaderHidden(true);
setColumnCount(1);
setIndentation(Helper::treeIndentation);
setContextMenuPolicy(Qt::CustomContextMenu);
setExpandsOnDoubleClick(false);
}

PlotTreeItem* PlotTree::getTreeItem(QString name)
Expand Down Expand Up @@ -134,15 +136,24 @@ PlotWidget::PlotWidget(MainWindow *pParent)
mpVerticalLayout->setContentsMargins(0, 0, 0, 0);
mpVerticalLayout->addWidget(mpPlotTree);

createActions();
setLayout(mpVerticalLayout);

connect(mpPlotTree, SIGNAL(itemChanged(QTreeWidgetItem*,int)), SLOT(plotVariables(QTreeWidgetItem*,int)));
connect(mpPlotTree, SIGNAL(customContextMenuRequested(QPoint)), SLOT(showContextMenu(QPoint)));
connect(pParent->mpPlotWindowContainer, SIGNAL(subWindowActivated(QMdiSubWindow*)),
this, SLOT(updatePlotVariablesTree(QMdiSubWindow*)));
connect(this, SIGNAL(removePlotFile(PlotTreeItem*)), pParent->mpPlotWindowContainer,
SLOT(updatePlotWindows(PlotTreeItem*)));
}

void PlotWidget::createActions()
{
mpDeleteResultAction = new QAction(QIcon(":/Resources/icons/delete.png"), tr("Delete Result"), this);
mpDeleteResultAction->setStatusTip(tr("Delete the result"));
connect(mpDeleteResultAction, SIGNAL(triggered()), SLOT(deletePlotTreeItem()));
}

QList<QString> PlotWidget::readPlotVariables(QString fileName)
{
// need to replace \\ to / so that QFile can close the file properly, otherwise we can't open it second time
Expand Down Expand Up @@ -318,7 +329,7 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->setVariablesList(QStringList(pItem->getPlotVariable()));
pPlotWindow->plot();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateLayout();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
}
// if user unchecks the variable then remove it from the plot
Expand All @@ -332,7 +343,7 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->getPlot()->removeCurve(pPlotCurve);
pPlotCurve->detach();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateLayout();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
break;
}
Expand Down Expand Up @@ -374,7 +385,7 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->setYLabel(tr(""));
}
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateLayout();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
}
else
Expand Down Expand Up @@ -423,7 +434,7 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->getPlot()->removeCurve(pPlotCurve);
pPlotCurve->detach();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateLayout();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
break;
}
Expand Down Expand Up @@ -508,7 +519,24 @@ void PlotWidget::updatePlotVariablesTree(QMdiSubWindow *window)
mpPlotTree->blockSignals(false);
}

void PlotWidget::contextMenuEvent(QContextMenuEvent *event)
void PlotWidget::showContextMenu(QPoint point)
{
QTreeWidgetItem *item = 0;
item = mpPlotTree->itemAt(point);

// check if we have item at point and if the item is toplevelitem....because you can only delete toplevel items
if (item and !item->parent())
{
mSelectedPlotTreeItem = dynamic_cast<PlotTreeItem*>(item);
QMenu menu(this);
menu.addAction(mpDeleteResultAction);
menu.exec(mapToGlobal(point));
}
}

void PlotWidget::deletePlotTreeItem()
{
//QMessageBox::warning(0, "teststs", "sdcsdsdsdv", "OK");
emit removePlotFile(mSelectedPlotTreeItem);
qDeleteAll(mSelectedPlotTreeItem->takeChildren());
delete mSelectedPlotTreeItem;
}
7 changes: 5 additions & 2 deletions OMEdit/OMEditGUI/PlotWidget.h
Expand Up @@ -75,6 +75,7 @@ class PlotWidget : public QWidget
Q_OBJECT
public:
PlotWidget(MainWindow *pParent);
void createActions();
QList<QString> readPlotVariables(QString fileName);
void addPlotVariablestoTree(QString fileName, QList<QString> plotVariablesList);
void addPlotVariableToTree(QString fileName, QString parentStructure, QString childName, QString fullStructure = QString(), bool derivative = false);
Expand All @@ -85,13 +86,15 @@ class PlotWidget : public QWidget
QVBoxLayout *mpVerticalLayout;
QList<QStringList> mPlotParametricVariables;
QString mFileName;
PlotTreeItem *mSelectedPlotTreeItem;
QAction *mpDeleteResultAction;
signals:
void removePlotFile(PlotTreeItem *item);
public slots:
void plotVariables(QTreeWidgetItem *item, int column);
void updatePlotVariablesTree(QMdiSubWindow *window);
protected:
void contextMenuEvent(QContextMenuEvent *event);
void showContextMenu(QPoint point);
void deletePlotTreeItem();
};

#endif // PLOTWIDGET_H
5 changes: 5 additions & 0 deletions OMEdit/OMEditGUI/ProjectTabWidget.cpp
Expand Up @@ -613,19 +613,24 @@ void GraphicsView::createActions()
// Connection Delete Action
mpCancelConnectionAction = new QAction(QIcon(":/Resources/icons/delete.png"),
tr("Cancel Connection"), this);
mpCancelConnectionAction->setStatusTip(tr("Cancels the current connection"));
connect(mpCancelConnectionAction, SIGNAL(triggered()), SLOT(removeConnector()));
// Icon Rotate ClockWise Action
mpRotateIconAction = new QAction(QIcon(":/Resources/icons/rotateclockwise.png"),
tr("Rotate Clockwise"), this);
mpRotateIconAction->setStatusTip(tr("Rotate the item clockwise"));
mpRotateIconAction->setShortcut(QKeySequence("Ctrl+r"));
// Icon Rotate Anti-ClockWise Action
mpRotateAntiIconAction = new QAction(QIcon(":/Resources/icons/rotateanticlockwise.png"),
tr("Rotate Anticlockwise"), this);
mpRotateAntiIconAction->setStatusTip(tr("Rotate the item anticlockwise"));
mpRotateAntiIconAction->setShortcut(QKeySequence("Ctrl+Shift+r"));
// Icon Reset Rotation Action
mpResetRotation = new QAction(tr("Reset Rotation"), this);
mpResetRotation->setStatusTip(tr("Reset the item rotation"));
// Icon Delete Action
mpDeleteIconAction = new QAction(QIcon(":/Resources/icons/delete.png"), tr("Delete"), this);
mpDeleteIconAction->setStatusTip(tr("Delete the item"));
mpDeleteIconAction->setShortcut(QKeySequence::Delete);
}

Expand Down
6 changes: 6 additions & 0 deletions OMEdit/OMEditGUI/ShapeAnnotation.cpp
Expand Up @@ -111,6 +111,7 @@ void ShapeAnnotation::initializeFields()
void ShapeAnnotation::createActions()
{
mpShapePropertiesAction = new QAction(QIcon(":/Resources/icons/tool.png"), tr("Properties"), this);
mpShapePropertiesAction->setStatusTip(tr("Shows the shape properties"));
connect(mpShapePropertiesAction, SIGNAL(triggered()), SLOT(openShapeProperties()));
}

Expand Down Expand Up @@ -374,6 +375,11 @@ QVariant ShapeAnnotation::itemChange(GraphicsItemChange change, const QVariant &

void ShapeAnnotation::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
{
if (!mIsCustomShape)
{
QGraphicsItem::contextMenuEvent(event);
return;
}
// if (!mpGraphicsView)
// {
// QGraphicsItem::contextMenuEvent(event);
Expand Down
6 changes: 6 additions & 0 deletions OMEdit/OMEditGUI/StringHandler.cpp
Expand Up @@ -321,6 +321,12 @@ QList<QString> StringHandler::getSimulationResultVars(QString value)
list.append(str.remove((str.length() - 1), 1));
str.clear();
}
else if (value.at(i+1) == '}')
{
startReading = false;
list.append(str.remove((str.length() - 1), 1));
str.clear();
}
}
else
startReading = true;
Expand Down

0 comments on commit 2ff4d82

Please sign in to comment.