Create stub methods and connects the model with the new statistics

Connects the YearlyStatistics model with the YearlyStatisticsWidget
nothing is shown right now, mostly because I need to do everything
but now it's easyer to add the things that are missing.

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 16:10:47 -03:00 committed by Dirk Hohndel
parent 750fc529b7
commit 1c56c9f626
3 changed files with 44 additions and 2 deletions

View file

@ -545,12 +545,13 @@ void MainWindow::on_actionAutoGroup_triggered()
void MainWindow::on_actionYearlyStatistics_triggered()
{
QDialog d;
YearlyStatisticsWidget *s = new YearlyStatisticsWidget();
YearlyStatisticsWidget *newView = new YearlyStatisticsWidget();
QVBoxLayout *l = new QVBoxLayout(&d);
l->addWidget(s);
l->addWidget(newView);
YearlyStatisticsModel *m = new YearlyStatisticsModel();
QTreeView *view = new QTreeView();
view->setModel(m);
newView->setModel(m);
l->addWidget(view);
d.exec();
}