summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-27 20:53:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-27 20:53:25 -0700
commit4179885da79d4d2ba0a4893331e162235765ad0f (patch)
treea01a38c68deab7ca159c11658fa053133c15254e /qt-ui/mainwindow.cpp
parent4bb0cd8cef2bbbbe3df6fc3daa9ccca95f065038 (diff)
parent2f4d6bbe535a195046b4746fd3a771087ee4a6c4 (diff)
downloadsubsurface-4179885da79d4d2ba0a4893331e162235765ad0f.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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index d20f8cfb6..c1e15e30c 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -22,7 +22,7 @@
#include "../dive.h"
#include "../divelist.h"
#include "../pref.h"
-
+#include "modeldelegates.h"
MainWindow::MainWindow() : ui(new Ui::MainWindow()),
model(new DiveTripModel(this)),
@@ -69,6 +69,7 @@ void MainWindow::on_actionOpen_triggered()
model->deleteLater();
model = new DiveTripModel(this);
sortModel->setSourceModel(model);
+ ui->ListWidget->setItemDelegateForColumn(DiveTripModel::RATING, new StarWidgetsDelegate());
}
void MainWindow::on_actionSave_triggered()