mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user