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_ ) ...@@ -219,8 +219,7 @@ ExtensionTab::ExtensionTab( intf_thread_t *p_intf_ )
layout->addWidget( extList ); layout->addWidget( extList );
// List item delegate // List item delegate
ExtensionItemDelegate *itemDelegate = new ExtensionItemDelegate( p_intf, ExtensionItemDelegate *itemDelegate = new ExtensionItemDelegate( extList );
extList );
extList->setItemDelegate( itemDelegate ); extList->setItemDelegate( itemDelegate );
// Extension list look & feeling // Extension list look & feeling
...@@ -426,9 +425,8 @@ QModelIndex ExtensionListModel::index( int row, int column, ...@@ -426,9 +425,8 @@ QModelIndex ExtensionListModel::index( int row, int column,
/* Extension List Widget Item */ /* Extension List Widget Item */
ExtensionItemDelegate::ExtensionItemDelegate( intf_thread_t *p_intf, ExtensionItemDelegate::ExtensionItemDelegate( QObject *parent )
QListView *view ) : QStyledItemDelegate( parent )
: QStyledItemDelegate( view ), view( view ), p_intf( p_intf )
{ {
margins = QMargins( 4, 4, 4, 4 ); margins = QMargins( 4, 4, 4, 4 );
} }
......
...@@ -175,7 +175,7 @@ private: ...@@ -175,7 +175,7 @@ private:
class ExtensionItemDelegate : public QStyledItemDelegate class ExtensionItemDelegate : public QStyledItemDelegate
{ {
public: public:
ExtensionItemDelegate( intf_thread_t *p_intf, QListView *view ); ExtensionItemDelegate( QObject *parent );
virtual ~ExtensionItemDelegate(); virtual ~ExtensionItemDelegate();
virtual void paint( QPainter *painter, virtual void paint( QPainter *painter,
...@@ -188,8 +188,6 @@ public: ...@@ -188,8 +188,6 @@ public:
private: private:
QMargins margins; QMargins margins;
QListView *view;
intf_thread_t *p_intf;
}; };
class ExtensionInfoDialog : public QVLCDialog 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