Fix TreeMap Crash & Cosmetics

The recent fix for date range selection was not applied to the
TreeMap plot and caused a SEGV on restart (when placed on home
window). This fixes that.

It also fixes a minor cosmetic related to QFrame margins.
This commit is contained in:
Mark Liversedge
2011-02-11 23:08:05 +00:00
parent 2f44100246
commit c144098165
4 changed files with 24 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ TreeMapWindow::TreeMapWindow(MainWindow *parent, bool useMetricUnits, const QDir
setInstanceName("Treemap Window");
// the plot
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout = new QVBoxLayout;
ltmPlot = new TreeMapPlot(this, main, home);
mainLayout->addWidget(ltmPlot);
mainLayout->setSpacing(0);
@@ -119,6 +119,18 @@ TreeMapWindow::~TreeMapWindow()
delete popup;
}
QString
TreeMapWindow::dateRange() const
{
return ltmTool->_dateRange();
}
void
TreeMapWindow::setDateRange(QString s)
{
ltmTool->setDateRange(s);
}
void
TreeMapWindow::rideSelected()
{