diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-28 13:10:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-28 13:10:20 -0700 |
commit | 0794f03b5e9dd1ba55e16b10b11cd6d61530b5b8 (patch) | |
tree | 28a712ce3b167887ed3f035b2d4a66b130bcb425 /qt-ui/mainwindow.cpp | |
parent | 4c665be05f7128a5a259fb3b71f3d65019639b1d (diff) | |
parent | 0be521bb25cf6210ad47e42eb7a8eb7638c32442 (diff) | |
download | subsurface-0794f03b5e9dd1ba55e16b10b11cd6d61530b5b8.tar.gz |
Merge branch 'RenderStarsOnTable' of https://github.com/tcanabrava/subsurface into Qt
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 71ba70525..9901e4186 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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() |