Commit dc1fd8f5 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: publicize getItem() in the model

parent 42285370
...@@ -95,6 +95,8 @@ public: ...@@ -95,6 +95,8 @@ public:
void removeItem( int ); void removeItem( int );
void rebuild(); void rebuild( playlist_item_t *, bool b_first = false ); void rebuild(); void rebuild( playlist_item_t *, bool b_first = false );
static inline PLItem *getItem( QModelIndex index );
private: private:
/* General */ /* General */
...@@ -128,7 +130,7 @@ private: ...@@ -128,7 +130,7 @@ private:
PLItem *findById( PLItem *, int ); PLItem *findById( PLItem *, int );
PLItem *findByInput( PLItem *, int ); PLItem *findByInput( PLItem *, int );
PLItem *findInner( PLItem *, int , bool ); PLItem *findInner( PLItem *, int , bool );
static inline PLItem *getItem( QModelIndex index );
int columnFromMeta( int meta_column ) const; int columnFromMeta( int meta_column ) const;
int columnToMeta( int column ) const; int columnToMeta( int column ) const;
bool canEdit() const; bool canEdit() const;
......
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