2013-04-13 20:44:02 -07:00
|
|
|
/*
|
|
|
|
* divelistview.cpp
|
|
|
|
*
|
|
|
|
* classes for the divelist of Subsurface
|
|
|
|
*
|
|
|
|
*/
|
2013-04-12 08:24:07 +01:00
|
|
|
#include "divelistview.h"
|
2013-04-27 12:27:27 -03:00
|
|
|
#include "models.h"
|
|
|
|
#include "modeldelegates.h"
|
2013-05-02 19:27:36 -03:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QHeaderView>
|
2013-04-12 08:24:07 +01:00
|
|
|
|
|
|
|
DiveListView::DiveListView(QWidget *parent) : QTreeView(parent)
|
|
|
|
{
|
2013-04-24 16:57:30 +01:00
|
|
|
setUniformRowHeights(true);
|
2013-05-01 23:51:34 -03:00
|
|
|
setItemDelegateForColumn(TreeItemDT::RATING, new StarWidgetsDelegate());
|
2013-04-12 08:24:07 +01:00
|
|
|
}
|