Commit e1cdc9e5 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: ExtensionItemDelegate: remove unused members

parent 5f78dc28
......@@ -219,8 +219,7 @@ ExtensionTab::ExtensionTab( intf_thread_t *p_intf_ )
layout->addWidget( extList );
// List item delegate
ExtensionItemDelegate *itemDelegate = new ExtensionItemDelegate( p_intf,
extList );
ExtensionItemDelegate *itemDelegate = new ExtensionItemDelegate( extList );
extList->setItemDelegate( itemDelegate );
// Extension list look & feeling
......@@ -426,9 +425,8 @@ QModelIndex ExtensionListModel::index( int row, int column,
/* Extension List Widget Item */
ExtensionItemDelegate::ExtensionItemDelegate( intf_thread_t *p_intf,
QListView *view )
: QStyledItemDelegate( view ), view( view ), p_intf( p_intf )
ExtensionItemDelegate::ExtensionItemDelegate( QObject *parent )
: QStyledItemDelegate( parent )
{
margins = QMargins( 4, 4, 4, 4 );
}
......
......@@ -175,7 +175,7 @@ private:
class ExtensionItemDelegate : public QStyledItemDelegate
{
public:
ExtensionItemDelegate( intf_thread_t *p_intf, QListView *view );
ExtensionItemDelegate( QObject *parent );
virtual ~ExtensionItemDelegate();
virtual void paint( QPainter *painter,
......@@ -188,8 +188,6 @@ public:
private:
QMargins margins;
QListView *view;
intf_thread_t *p_intf;
};
class ExtensionInfoDialog : public QVLCDialog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment