mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
- Should fix compiling errors with Qt 4.2
This commit is contained in:
parent
57b4a7150a
commit
5879df7d5f
5 changed files with 8 additions and 5 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <QModelIndex>
|
||||
#include <QPainter>
|
||||
#include <QStyleOptionProgressBarV2>
|
||||
#include <QStyleOptionViewItemV2>
|
||||
#include <QProgressBar>
|
||||
#include <QApplication>
|
||||
#include "misc.h"
|
||||
|
@ -51,7 +52,7 @@ class DLListDelegate: 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 SIZE:
|
||||
QItemDelegate::drawBackground(painter, opt, index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue