mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Yearly stats are being displayed.
Yearly stats are being displayed. the code is similar to the GTK one, but I advise the reader that it's a bit risky ( I got an unreproducible crash but it seems to be fixed now. ). The selection behavior is *weird* and I have no idea why, but I'm very sleepy - will try to look at it again tomorrow. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
a05ea5a6e8
commit
87e380c7a2
3 changed files with 84 additions and 2 deletions
|
@ -241,7 +241,7 @@ void MainWindow::on_actionToggleZoom_triggered()
|
|||
|
||||
void MainWindow::on_actionYearlyStatistics_triggered()
|
||||
{
|
||||
QTableView *view = new QTableView();
|
||||
QTreeView *view = new QTreeView();
|
||||
QAbstractItemModel *model = new YearlyStatisticsModel();
|
||||
view->setModel(model);
|
||||
view->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue