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