mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Merge branch 'RenderStarsOnTable' of https://github.com/tcanabrava/subsurface into Qt
This commit is contained in:
commit
4179885da7
9 changed files with 115 additions and 59 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue