Revision 1777 trunk/client/gui_qt/ProgressBarDelegateDownloadQueue.cpp

ProgressBarDelegateDownloadQueue.cpp (revision 1777)
11 11
#endif
12 12

                
13 13
ProgressBarDelegateDownloadQueue::ProgressBarDelegateDownloadQueue(QObject *parent)
14
       : QItemDelegate(parent)
14
        : QItemDelegate(parent)
15 15
{
16 16

                
17 17
}
... ...
23 23

                
24 24
QSize ProgressBarDelegateDownloadQueue::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const
25 25
{
26
    Q_UNUSED(option);
27

                
26 28
    QString txt = index.model()->data(index, Qt::DisplayRole).toString();
27 29

                
28 30
    if (txt.isEmpty()) {
... ...
34 36

                
35 37
void ProgressBarDelegateDownloadQueue::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
36 38
{
37
    Q_UNUSED(option);
38 39
    QStyleOptionProgressBarV2 opts;
39 40
    int value = index.model()->data(index.sibling(index.row(), DownloadQueueItem::FIELD_PROGRESS), Qt::DisplayRole).toInt();
40 41
    QString txt = index.model()->data(index, Qt::DisplayRole).toString();

Also available in: Unified diff