Add the old Statistics to have a reference view while programming

Added the old statistics panel at the botton of the new one to have
a reference view of the statistics while programming the new one.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-08-25 15:48:26 -03:00 committed by Dirk Hohndel
parent 2fe1dfe83a
commit 750fc529b7

View file

@ -548,6 +548,10 @@ void MainWindow::on_actionYearlyStatistics_triggered()
YearlyStatisticsWidget *s = new YearlyStatisticsWidget();
QVBoxLayout *l = new QVBoxLayout(&d);
l->addWidget(s);
YearlyStatisticsModel *m = new YearlyStatisticsModel();
QTreeView *view = new QTreeView();
view->setModel(m);
l->addWidget(view);
d.exec();
}