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