Reinstate Tab view

After discussion on the list the utility and popularity of
the original tab view was restated. This patch reinstates
the tab view and attempts to unify the Qt tab widget with
the general look and feel of the application.
This commit is contained in:
Mark Liversedge
2011-06-04 17:12:17 +01:00
parent c820de8f57
commit 2daa332f41
6 changed files with 62 additions and 30 deletions

View File

@@ -284,7 +284,7 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) :
fullPlot->enableAxis(QwtPlot::yRight, false);
fullPlot->enableAxis(QwtPlot::yRight2, false);
fullPlot->enableAxis(QwtPlot::xBottom, false);
fullPlot->legend()->clear();
//fullPlot->legend()->clear();
//fullPlot->setTitle("");
fullPlot->setContentsMargins(0,0,0,0);
@@ -425,7 +425,7 @@ AllPlotWindow::redrawFullPlot()
fullPlot->enableAxis(QwtPlot::yRight, false);
fullPlot->enableAxis(QwtPlot::yRight2, false);
fullPlot->enableAxis(QwtPlot::xBottom, false);
fullPlot->legend()->clear();
//fullPlot->legend()->clear();
//fullPlot->setTitle("");
if (fullPlot->bydist)
@@ -1310,12 +1310,12 @@ AllPlotWindow::setupStackPlots()
if (i==0){
// First plot view title and legend
//_allPlot->setTitle(allPlot->title());
_allPlot->plotLayout()->setLegendPosition(QwtPlot::TopLegend);
//_allPlot->plotLayout()->setLegendPosition(QwtPlot::TopLegend);
_allPlot->setFixedHeight(120+stackWidth*2+50);
}
else {
_allPlot->setTitle("");
_allPlot->insertLegend(NULL);
//_allPlot->insertLegend(NULL);
_allPlot->setFixedHeight(120+stackWidth*2);
}