mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
- Should fix compiling errors with Qt 4.2
This commit is contained in:
parent
57b4a7150a
commit
5879df7d5f
1
TODO
1
TODO
@ -38,7 +38,6 @@
|
||||
- Check storage st creation + hasher in torrent creation
|
||||
- test IPv6 support (How? Who uses IPv6?)
|
||||
- Fix all (or almost all) opened bugs in bug tracker
|
||||
- Fix column sorting with Qt 4.3 - Reported to Trolltech, waiting for their fix
|
||||
- update sorting when a new torrent is added?
|
||||
- Complete documentation and english translation
|
||||
- Windows port (Chris - Peerkoel)
|
||||
|
@ -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);
|
||||
|
@ -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 {
|
||||
|
||||
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);
|
||||
|
@ -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()){
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include <QItemDelegate>
|
||||
#include <QStyleOptionProgressBarV2>
|
||||
#include <QStyleOptionViewItemV2>
|
||||
#include <QModelIndex>
|
||||
#include <QPainter>
|
||||
#include <QProgressBar>
|
||||
@ -45,7 +46,7 @@ class SearchListDelegate: public QItemDelegate {
|
||||
~SearchListDelegate(){}
|
||||
|
||||
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const{
|
||||
QStyleOptionViewItemV3 opt = QItemDelegate::setOptions(index, option);
|
||||
QStyleOptionViewItemV2 opt = QItemDelegate::setOptions(index, option);
|
||||
switch(index.column()){
|
||||
case SIZE:
|
||||
QItemDelegate::drawBackground(painter, opt, index);
|
||||
|
Loading…
Reference in New Issue
Block a user