Skip to content

Commit

Permalink
Remove the file extension for display name.
Browse files Browse the repository at this point in the history
Use the name instead of classname.
  • Loading branch information
adeas31 committed Nov 2, 2016
1 parent 9100a82 commit 78b64bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Plotting/VariablesWidget.cpp
Expand Up @@ -488,7 +488,7 @@ void VariablesTreeModel::insertVariablesItems(QString fileName, QString filePath
SimulationOptions simulationOptions)
{
QString toolTip = tr("Simulation Result File: %1\n%2: %3/%4").arg(fileName).arg(Helper::fileLocation).arg(filePath).arg(fileName);
QRegExp resultTypeRegExp("(_res.mat|_res.plt|_res.csv)");
QRegExp resultTypeRegExp("(.mat|.plt|.csv|_res.mat|_res.plt|_res.csv)");
QString text = QString(fileName).remove(resultTypeRegExp);
QModelIndex index = variablesTreeItemIndex(mpRootVariablesTreeItem);
QVector<QVariant> Variabledata;
Expand Down
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/TLM/TLMCoSimulationDialog.cpp
Expand Up @@ -159,7 +159,7 @@ TLMCoSimulationDialog::TLMCoSimulationDialog(MainWindow *pMainWindow)
setLayout(pMainLayout);
// create TLMCoSimulationOutputWidget
mpTLMCoSimulationOutputWidget = new TLMCoSimulationOutputWidget(mpMainWindow);
int xPos = QApplication::desktop()->availableGeometry().width() - mpTLMCoSimulationOutputWidget->frameSize().width() - 90;
int xPos = QApplication::desktop()->availableGeometry().width() - mpTLMCoSimulationOutputWidget->frameSize().width() - 20;
int yPos = QApplication::desktop()->availableGeometry().height() - mpTLMCoSimulationOutputWidget->frameSize().height() - 20;
mpTLMCoSimulationOutputWidget->setGeometry(xPos, yPos, mpTLMCoSimulationOutputWidget->width(), mpTLMCoSimulationOutputWidget->height());
}
Expand Down Expand Up @@ -246,7 +246,7 @@ bool TLMCoSimulationDialog::validate()
TLMCoSimulationOptions TLMCoSimulationDialog::createTLMCoSimulationOptions()
{
TLMCoSimulationOptions tlmCoSimulationOptions;
tlmCoSimulationOptions.setClassName(mpLibraryTreeItem->getNameStructure());
tlmCoSimulationOptions.setClassName(mpLibraryTreeItem->getName());
tlmCoSimulationOptions.setFileName(mpLibraryTreeItem->getFileName());
tlmCoSimulationOptions.setTLMPluginPath(mpTLMPluginPathTextBox->text());
tlmCoSimulationOptions.setManagerProcess(mpManagerProcessTextBox->text());
Expand Down

0 comments on commit 78b64bf

Please sign in to comment.