diff options
Diffstat (limited to 'ui/qt/timeline_delegate.cpp')
-rw-r--r-- | ui/qt/timeline_delegate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/timeline_delegate.cpp b/ui/qt/timeline_delegate.cpp index 0cfdd73147..2162da1030 100644 --- a/ui/qt/timeline_delegate.cpp +++ b/ui/qt/timeline_delegate.cpp @@ -43,12 +43,11 @@ void TimelineDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti QStyleOptionViewItem option_vi = option; QStyledItemDelegate::initStyleOption(&option_vi, index); - struct timeline_span span_px = index.data(Qt::UserRole).value<struct timeline_span>(); // Paint our rect with no text using the current style, then draw our // bar and text over it. - QStyledItemDelegate::paint(painter, option, QModelIndex()); + QStyledItemDelegate::paint(painter, option, index); if (QApplication::style()->objectName().contains("vista")) { // QWindowsVistaStyle::drawControl does this internally. Unfortunately there |