10#ifndef TIMELINE_DELEGATE_H
11#define TIMELINE_DELEGATE_H
33#include <QStyledItemDelegate>
85 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
86 const QModelIndex &index)
const override;
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Paints the timeline bar for the cell at index using the span geometry stored in the configured data r...
Definition timeline_delegate.cpp:38
TimelineDelegate(QWidget *parent=0)
Constructs the TimelineDelegate.
Definition timeline_delegate.cpp:27
void setDataRole(int role)
Sets the model role from which timeline_span data is retrieved during painting.
Definition timeline_delegate.cpp:33
Describes a single time-span bar to be rendered inside a timeline cell, with pixel geometry and norma...
Definition timeline_delegate.h:42
double minRelTime
Definition timeline_delegate.h:48
int width
Definition timeline_delegate.h:44
double startTime
Definition timeline_delegate.h:46
int colDuration
Definition timeline_delegate.h:52
int start
Definition timeline_delegate.h:43
int colStart
Definition timeline_delegate.h:51
double maxRelTime
Definition timeline_delegate.h:49
double stopTime
Definition timeline_delegate.h:47