|
C++ Paste by Anonymous
Description: None
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #ifndef DLLISTDELEGATE_H #define DLLISTDELEGATE_H #include <QAbstractItemDelegate> // Defines for download list list columns #define SYMBOL 0 #define NAME 1 #define SIZE 2 #define DLSPEED 3 #define PROGRESS 4 #define SOURCES 5 #define ROUTEQUALITY 6 #define STATUS 7 #define HOST 8 #define HASH 9 #define PTR 10 #define COMPLETED 11 #define REMAINING 12 #define MAX_CHAR_TMP 128 class QModelIndex; class QPainter; class QStyleOptionProgressBarV2; class QProgressBar; class QApplication; class DLListDelegate: public QAbstractItemDelegate { Q_OBJECT public: DLListDelegate(QObject *parent=0); ~DLListDelegate(); void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const; QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const; private: public slots: signals: }; #endif |