|
|
|
@ -26,6 +26,7 @@
@@ -26,6 +26,7 @@
|
|
|
|
|
#include <QModelIndex> |
|
|
|
|
#include <QPainter> |
|
|
|
|
#include <QStyleOptionProgressBarV2> |
|
|
|
|
#include <QStyleOptionViewItemV2> |
|
|
|
|
#include <QProgressBar> |
|
|
|
|
#include <QApplication> |
|
|
|
|
#include "misc.h" |
|
|
|
@ -49,7 +50,7 @@ class FinishedListDelegate: public QItemDelegate {
@@ -49,7 +50,7 @@ class FinishedListDelegate: public QItemDelegate {
|
|
|
|
|
|
|
|
|
|
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const{ |
|
|
|
|
char tmp[MAX_CHAR_TMP]; |
|
|
|
|
QStyleOptionViewItemV3 opt = QItemDelegate::setOptions(index, option); |
|
|
|
|
QStyleOptionViewItemV2 opt = QItemDelegate::setOptions(index, option); |
|
|
|
|
switch(index.column()){ |
|
|
|
|
case F_SIZE: |
|
|
|
|
QItemDelegate::drawBackground(painter, opt, index); |
|
|
|
|