[vlc-devel] commit: Qt: Remove PLPanel upper class (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Dec 4 07:21:47 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 30 00:17:36 2009 +0100| [de5baa43bfc620f74e35325aaabe7e187ed91d3b] | committer: Jean-Baptiste Kempf
Qt: Remove PLPanel upper class
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de5baa43bfc620f74e35325aaabe7e187ed91d3b
---
modules/gui/qt4/components/playlist/panels.hpp | 29 +++++--------------
modules/gui/qt4/components/playlist/playlist.hpp | 4 +-
.../gui/qt4/components/playlist/standardpanel.cpp | 2 +-
3 files changed, 11 insertions(+), 24 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/panels.hpp b/modules/gui/qt4/components/playlist/panels.hpp
index 8949179..7499c40 100644
--- a/modules/gui/qt4/components/playlist/panels.hpp
+++ b/modules/gui/qt4/components/playlist/panels.hpp
@@ -43,42 +43,29 @@ class PLModel;
class QPushButton;
class QKeyEvent;
-class PLPanel: public QWidget
+class StandardPLPanel: public QWidget
{
- Q_OBJECT;
-public:
- PLPanel( PlaylistWidget *p, intf_thread_t *_p_intf ) : QWidget( p )
- {
- p_intf = _p_intf;
- parent = p;
- }
- virtual ~PLPanel() {};
-protected:
- intf_thread_t *p_intf;
- QFrame *parent;
-public slots:
- virtual void setRoot( playlist_item_t * ) = 0;
-};
-
+ Q_OBJECT
-class StandardPLPanel: public PLPanel
-{
- Q_OBJECT;
public:
StandardPLPanel( PlaylistWidget *, intf_thread_t *,
playlist_t *,playlist_item_t * );
virtual ~StandardPLPanel();
protected:
+ friend class PlaylistWidget;
+
virtual void keyPressEvent( QKeyEvent *e );
-protected:
+
PLModel *model;
- friend class PlaylistWidget;
private:
+ intf_thread_t *p_intf;
+ QWidget *parent;
QLabel *title;
QTreeView *view;
QPushButton *repeatButton, *randomButton, *addButton, *gotoPlayingButton;
int currentRootId;
QSignalMapper *selectColumnsSigMapper;
+
public slots:
void removeItem( int );
virtual void setRoot( playlist_item_t * );
diff --git a/modules/gui/qt4/components/playlist/playlist.hpp b/modules/gui/qt4/components/playlist/playlist.hpp
index 13aed92..7228916 100644
--- a/modules/gui/qt4/components/playlist/playlist.hpp
+++ b/modules/gui/qt4/components/playlist/playlist.hpp
@@ -40,7 +40,7 @@
#include <QLabel>
class PLSelector;
-class PLPanel;
+class StandardPLPanel;
class QPushButton;
class CoverArtLabel;
class ArtLabel;
@@ -53,7 +53,7 @@ public:
virtual ~PlaylistWidget();
private:
PLSelector *selector;
- PLPanel *rightPanel;
+ StandardPLPanel *rightPanel;
QPushButton *addButton;
ArtLabel *art;
protected:
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 8158ffa..923a14c 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -52,7 +52,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
intf_thread_t *_p_intf,
playlist_t *p_playlist,
playlist_item_t *p_root ):
- PLPanel( _parent, _p_intf )
+ QWidget( _parent ), p_intf( _p_intf )
{
model = new PLModel( p_playlist, p_intf, p_root, this );
More information about the vlc-devel
mailing list