Merge branch 'RenderStarsOnTable' of https://github.com/tcanabrava/subsurface into Qt

This commit is contained in:
Dirk Hohndel 2013-04-28 13:10:20 -07:00
commit 0794f03b5e
5 changed files with 4 additions and 10 deletions

View file

@ -69,7 +69,7 @@ void MainWindow::on_actionOpen_triggered()
model->deleteLater();
model = new DiveTripModel(this);
sortModel->setSourceModel(model);
ui->ListWidget->setItemDelegateForColumn(DiveTripModel::RATING, new StarWidgetsDelegate());
ui->ListWidget->sortByColumn(0, Qt::DescendingOrder);
}
void MainWindow::on_actionSave_triggered()