Commit 560da457 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Commenting playlist_model code.

parent faad0752
This diff is collapsed.
...@@ -39,6 +39,7 @@ class QSignalMapper; ...@@ -39,6 +39,7 @@ class QSignalMapper;
class PLItem class PLItem
{ {
friend class PLModel;
public: public:
PLItem( int, int, PLItem *parent , PLModel * ); PLItem( int, int, PLItem *parent , PLModel * );
PLItem( playlist_item_t *, PLItem *parent, PLModel * ); PLItem( playlist_item_t *, PLItem *parent, PLModel * );
...@@ -52,23 +53,23 @@ public: ...@@ -52,23 +53,23 @@ public:
insertChild( item, children.count(), signal ); insertChild( item, children.count(), signal );
}; };
void remove( PLItem *removed ); void remove( PLItem *removed );
PLItem *child( int row ) { return children.value( row ); }; PLItem *child( int row ) { return children.value( row ); };
int childCount() const { return children.count(); }; int childCount() const { return children.count(); };
QString columnString( int col ) { return strings.value( col ); }; QString columnString( int col ) { return item_col_strings.value( col ); };
PLItem *parent() { return parentItem; }; PLItem *parent() { return parentItem; };
void update( playlist_item_t *, bool ); void update( playlist_item_t *, bool );
protected: protected:
QList<PLItem*> children; QList<PLItem*> children;
QList<QString> strings; QList<QString> item_col_strings;
bool current; bool b_current;
int i_type; int i_type;
int i_id; int i_id;
int i_input_id; int i_input_id;
int i_showflags; int i_showflags;
void updateview( void ); void updateview();
friend class PLModel;
private: private:
void init( int, int, PLItem *, PLModel * ); void init( int, int, PLItem *, PLModel * );
PLItem *parentItem; PLItem *parentItem;
...@@ -100,6 +101,8 @@ class PLModel : public QAbstractItemModel ...@@ -100,6 +101,8 @@ class PLModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT
friend class PLItem;
public: public:
PLModel( playlist_t *, intf_thread_t *, PLModel( playlist_t *, intf_thread_t *,
playlist_item_t *, int, QObject *parent = 0 ); playlist_item_t *, int, QObject *parent = 0 );
...@@ -198,7 +201,6 @@ private slots: ...@@ -198,7 +201,6 @@ private slots:
void popupExplore(); void popupExplore();
#endif #endif
void viewchanged( int ); void viewchanged( int );
friend class PLItem;
}; };
#endif #endif
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