rendered paste bodydiff --git a/kget/ui/transfersviewdelegate.cpp b/kget/ui/transfersviewdelegate.cppindex 168b205..40d5ae7 100644--- a/kget/ui/transfersviewdelegate.cpp+++ b/kget/ui/transfersviewdelegate.cpp@@ -3,6 +3,7 @@ Copyright (C) 2006 Dario Massarin <nekkar@libero.it> Copyright (C) 2007 by Javier Goday <jgoday@gmail.com> Copyright (C) 2008 Lukas Appelhans <l.appelhans@gmx.de>+ Copyright (C) 2010 Matthias Fuchs <mat69@gmx.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public@@ -204,7 +205,7 @@ void GroupStatusButton::timerEvent(QTimerEvent *event) update(); } -GroupStatusEditor::GroupStatusEditor(const QModelIndex & index, const QStyledItemDelegate * delegate, QWidget * parent)+GroupStatusEditor::GroupStatusEditor(const QModelIndex &index, QWidget *parent) : QWidget(parent), m_index(index) {@@ -223,7 +224,6 @@ GroupStatusEditor::GroupStatusEditor(const QModelIndex & index, const QStyledIte m_startBt->setIcon(KIcon("media-playback-start")); m_startBt->setFixedSize(36, 36); m_startBt->setIconSize(QSize(22, 22));- m_startBt->installEventFilter(const_cast<QStyledItemDelegate *>(delegate)); m_layout->addWidget(m_startBt); m_btGroup->addButton(m_startBt); @@ -233,7 +233,6 @@ GroupStatusEditor::GroupStatusEditor(const QModelIndex & index, const QStyledIte m_stopBt->setIcon(KIcon("media-playback-pause")); m_stopBt->setFixedSize(36, 36); m_stopBt->setIconSize(QSize(22, 22));- m_stopBt->installEventFilter(const_cast<QStyledItemDelegate *>(delegate)); m_layout->addWidget(m_stopBt); m_btGroup->addButton(m_stopBt); @@ -275,7 +274,7 @@ BasicTransfersViewDelegate::BasicTransfersViewDelegate(QAbstractItemView *parent QWidget *BasicTransfersViewDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const { if (index.column() == TransferTreeModel::Status) {- GroupStatusEditor *qroupStatusEditor = new GroupStatusEditor(index, this, parent);+ GroupStatusEditor *qroupStatusEditor = new GroupStatusEditor(index, parent); connect(qroupStatusEditor, SIGNAL(changedStatus(GroupStatusEditor*)), this, SLOT(slotGroupStatusChanged(GroupStatusEditor*))); return qroupStatusEditor; } else {diff --git a/kget/ui/transfersviewdelegate.h b/kget/ui/transfersviewdelegate.hindex 89548a6..7b9e1f0 100644--- a/kget/ui/transfersviewdelegate.h+++ b/kget/ui/transfersviewdelegate.h@@ -2,6 +2,7 @@ Copyright (C) 2006 Dario Massarin <nekkar@libero.it> Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>+ Copyright (C) 2010 Matthias Fuchs <mat69@gmx.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public@@ -29,7 +30,7 @@ class GroupStatusButton : public QToolButton Q_OBJECT public:- explicit GroupStatusButton(const QModelIndex & index, QWidget * parent=0);+ GroupStatusButton(const QModelIndex &index, QWidget *parent); protected: void checkStateSet();@@ -53,7 +54,7 @@ class GroupStatusEditor : public QWidget Q_OBJECT public:- explicit GroupStatusEditor(const QModelIndex & index, const QStyledItemDelegate * delegate, QWidget * parent=0);+ GroupStatusEditor(const QModelIndex &index, QWidget *parent); void setRunning(bool running); bool isRunning();