Clean fix for progress display with cleanlooks style

This commit is contained in:
Christophe Dumez
2010-03-31 14:33:49 +00:00
parent 3254dae59f
commit dbceed21f5
9 changed files with 30 additions and 128 deletions

View File

@@ -62,6 +62,7 @@ public:
~PropListDelegate(){}
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const{
painter->save();
QStyleOptionViewItemV2 opt = QItemDelegate::setOptions(index, option);
switch(index.column()){
case SIZE:
@@ -105,6 +106,7 @@ public:
QItemDelegate::paint(painter, option, index);
break;
}
painter->restore();
}
QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const{