mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 00:22:31 -06:00
- Should fix compiling errors with Qt 4.2
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <QItemDelegate>
|
||||
#include <QStyleOptionProgressBarV2>
|
||||
#include <QStyleOptionViewItemV2>
|
||||
#include <QModelIndex>
|
||||
#include <QPainter>
|
||||
#include <QProgressBar>
|
||||
@@ -44,7 +45,7 @@ class PreviewListDelegate: public QItemDelegate {
|
||||
~PreviewListDelegate(){}
|
||||
|
||||
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const{
|
||||
QStyleOptionViewItemV3 opt = QItemDelegate::setOptions(index, option);
|
||||
QStyleOptionViewItemV2 opt = QItemDelegate::setOptions(index, option);
|
||||
char tmp[MAX_CHAR_TMP];
|
||||
|
||||
switch(index.column()){
|
||||
|
||||
Reference in New Issue
Block a user