[vlc-commits] Qt: ExtensionItemDelegate: remove unused members
Francois Cartegnie
git at videolan.org
Fri Jan 17 23:12:33 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 17 22:50:50 2014 +0100| [e1cdc9e5912d3378ac8d48fc8b859c73f60c4dc0] | committer: Francois Cartegnie
Qt: ExtensionItemDelegate: remove unused members
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1cdc9e5912d3378ac8d48fc8b859c73f60c4dc0
---
modules/gui/qt4/dialogs/plugins.cpp | 8 +++-----
modules/gui/qt4/dialogs/plugins.hpp | 4 +---
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index eaed825..48b8628f1 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -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 );
}
diff --git a/modules/gui/qt4/dialogs/plugins.hpp b/modules/gui/qt4/dialogs/plugins.hpp
index e06c9ed..23a3668 100644
--- a/modules/gui/qt4/dialogs/plugins.hpp
+++ b/modules/gui/qt4/dialogs/plugins.hpp
@@ -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
More information about the vlc-commits
mailing list