Commit 14c39b80 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix a warning in the playlist models

parent b6fa76ea
...@@ -59,39 +59,41 @@ public: ...@@ -59,39 +59,41 @@ public:
static QString getMeta( const QModelIndex & index, int meta ); static QString getMeta( const QModelIndex & index, int meta );
static QPixmap getArtPixmap( const QModelIndex & index, const QSize & size ); static QPixmap getArtPixmap( const QModelIndex & index, const QSize & size );
public slots: static int columnToMeta( int _column )
virtual void activateItem( const QModelIndex &index ) = 0; {
int meta = 1;
int column = 0;
protected: while( column != _column && meta != COLUMN_END )
intf_thread_t *p_intf; {
}; meta <<= 1;
column++;
}
static int columnToMeta( int _column ) return meta;
{ }
int meta = 1;
int column = 0;
while( column != _column && meta != COLUMN_END ) static int columnFromMeta( int meta_col )
{ {
meta <<= 1; int meta = 1;
column++; int column = 0;
while( meta != meta_col && meta != COLUMN_END )
{
meta <<= 1;
column++;
}
return column;
} }
return meta; public slots:
} virtual void activateItem( const QModelIndex &index ) = 0;
static int columnFromMeta( int meta_col ) protected:
{ intf_thread_t *p_intf;
int meta = 1;
int column = 0;
while( meta != meta_col && meta != COLUMN_END ) };
{
meta <<= 1;
column++;
}
return column;
}
#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