Changeset 55dabec3 in OpenModelica


Ignore:
Timestamp:
2019-01-21T13:44:55+01:00 (5 years ago)
Author:
Adeel Asghar <adeel.asghar@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
35a006cf
Parents:
18e18bd
Message:

ticket#5273 Reset the filters before inserting new items to Variables Browser
The filters are applied back after insertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditGUI/Plotting/VariablesWidget.cpp

    r4a8d97d r55dabec3  
    11761176                                                 SimulationOptions simulationOptions)
    11771177{
    1178   mpVariablesTreeView->setSortingEnabled(false);
    1179   /* In order to improve the response time of insertVariablesItems function we should clear the filter and collapse all the items. */
    1180   mpVariableTreeProxyModel->setFilterRegExp(QRegExp(""));
    1181   mpVariablesTreeView->collapseAll();
    11821178  /* Show results in model diagram if it is present in ModelWidgetContainer
    11831179   * and if switch to plotting perspective is disabled
     
    12021198  variableItemDeleted = mpVariablesTreeModel->removeVariableTreeItem(fileName);
    12031199
     1200  mpVariablesTreeView->setSortingEnabled(false);
     1201  /* In order to improve the response time of insertVariablesItems function we should clear the filter and collapse all the items. */
     1202  mpVariableTreeProxyModel->setFilterRegExp(QRegExp(""));
     1203  mpVariablesTreeView->collapseAll();
    12041204  /* add the plot variables */
    12051205  mpVariablesTreeModel->insertVariablesItems(fileName, filePath, variablesList, simulationOptions);
Note: See TracChangeset for help on using the changeset viewer.