]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/playlist_item.hpp
Stop allocating QSettings all the time everywhere.
[vlc] / modules / gui / qt4 / components / playlist / playlist_item.hpp
index bd2b8d1049a4df60263bb99ccc6288b19e3caffa..885de1a0ff6f161518f810d0b3f0b7ad7ec5201e 100644 (file)
@@ -36,6 +36,7 @@
 #include <QString>
 #include <QList>
 
+class QSettings;
 class PLModel;
 
 class PLItem
@@ -44,6 +45,7 @@ class PLItem
 public:
     PLItem( int, int, PLItem *parent , PLModel * );
     PLItem( playlist_item_t *, PLItem *parent, PLModel * );
+    PLItem( playlist_item_t *, QSettings *, PLModel * );
     ~PLItem();
 
     int row() const;
@@ -75,7 +77,7 @@ protected:
     int i_showflags;
 
 private:
-    void init( int, int, PLItem *, PLModel * );
+    void init( int, int, PLItem *, PLModel *, QSettings * );
     void updateColumnHeaders();
     PLItem *parentItem;
     PLModel *model;