From 5879df7d5f51be83e489a6f793d9e2011c4908a4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 1 Aug 2007 07:19:44 +0000 Subject: [PATCH] - Should fix compiling errors with Qt 4.2 --- TODO | 1 - src/DLListDelegate.h | 3 ++- src/FinishedListDelegate.h | 3 ++- src/PreviewListDelegate.h | 3 ++- src/SearchListDelegate.h | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 0fff1f54f..c52bcf9db 100644 --- a/TODO +++ b/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) diff --git a/src/DLListDelegate.h b/src/DLListDelegate.h index 969295643..54ca27aae 100644 --- a/src/DLListDelegate.h +++ b/src/DLListDelegate.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #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); diff --git a/src/FinishedListDelegate.h b/src/FinishedListDelegate.h index 3c63fe490..797604c7f 100644 --- a/src/FinishedListDelegate.h +++ b/src/FinishedListDelegate.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #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); diff --git a/src/PreviewListDelegate.h b/src/PreviewListDelegate.h index 7a1714040..224894f89 100644 --- a/src/PreviewListDelegate.h +++ b/src/PreviewListDelegate.h @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -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()){ diff --git a/src/SearchListDelegate.h b/src/SearchListDelegate.h index 07ac39019..8afb615ad 100644 --- a/src/SearchListDelegate.h +++ b/src/SearchListDelegate.h @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -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);