Clean fix for progress display with cleanlooks style

This commit is contained in:
Christophe Dumez
2010-03-31 14:36:16 +00:00
parent 1013f39a42
commit 5ce02cb612
10 changed files with 31 additions and 128 deletions

View File

@@ -55,6 +55,7 @@ class SearchListDelegate: public QItemDelegate {
~SearchListDelegate(){}
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const{
painter->save();
QStyleOptionViewItemV2 opt = QItemDelegate::setOptions(index, option);
switch(index.column()){
case SIZE:
@@ -64,6 +65,7 @@ class SearchListDelegate: public QItemDelegate {
default:
QItemDelegate::paint(painter, option, index);
}
painter->restore();
}
QWidget* createEditor(QWidget*, const QStyleOptionViewItem &, const QModelIndex &) const {