Skip to content

Commit

Permalink
- hide welcome page on library item show up.
Browse files Browse the repository at this point in the history
- plot window layout updates.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10022 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Oct 5, 2011
1 parent 6ddd8b0 commit 07315ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/LibraryWidget.cpp
Expand Up @@ -526,6 +526,7 @@ void ModelicaTree::mouseDoubleClickEvent(QMouseEvent *event)
if (!itemAt(event->pos()))
return;
openProjectTab(itemAt(event->pos()), 0);
mpParentLibraryWidget->mpParentMainWindow->switchToModelingView();
QTreeWidget::mouseDoubleClickEvent(event);
}

Expand Down Expand Up @@ -931,6 +932,7 @@ void LibraryTree::mouseDoubleClickEvent(QMouseEvent *event)
if (!itemAt(event->pos()))
return;
showComponent(itemAt(event->pos()), 0);
mpParentLibraryWidget->mpParentMainWindow->switchToModelingView();
QTreeWidget::mouseDoubleClickEvent(event);
}

Expand Down
8 changes: 2 additions & 6 deletions OMEdit/OMEditGUI/PlotWidget.cpp
Expand Up @@ -332,7 +332,6 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->setVariablesList(QStringList(pItem->getPlotVariable()));
pPlotWindow->plot();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
}
// if user unchecks the variable then remove it from the plot
Expand All @@ -346,9 +345,8 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->getPlot()->removeCurve(pPlotCurve);
pPlotCurve->detach();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->updateLayout();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
break;
}
}
}
Expand Down Expand Up @@ -388,7 +386,6 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->setYLabel(tr(""));
}
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
}
else
Expand Down Expand Up @@ -437,9 +434,8 @@ void PlotWidget::plotVariables(QTreeWidgetItem *item, int column)
pPlotWindow->getPlot()->removeCurve(pPlotCurve);
pPlotCurve->detach();
pPlotWindow->fitInView();
pPlotWindow->getPlot()->updateGeometry();
pPlotWindow->getPlot()->updateLayout();
pPlotWindow->getPlot()->getPlotZoomer()->setZoomBase(false);
break;
}
}
mPlotParametricVariables.removeOne(list);
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Resources/css/stylesheet.qss
Expand Up @@ -63,5 +63,4 @@ QToolButton#InteractiveSimulationButtons {
QListWidget#RecentItemsList::item:hover {
border: 1px solid gray;
color: blue;
cursor: hand;
}

0 comments on commit 07315ca

Please sign in to comment.