|
|
|
@ -871,7 +871,7 @@ CollectionView::slotExpand( TQListViewItem* item ) //SLOT
|
|
|
|
|
|
|
|
|
|
if ( dynamic_cast<CollectionItem*>( item ) )
|
|
|
|
|
{
|
|
|
|
|
itemText = static_cast<CollectionItem*>( item )->getSTQLText( 0 );
|
|
|
|
|
itemText = static_cast<CollectionItem*>( item )->getSQLText( 0 );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -940,7 +940,7 @@ CollectionView::slotExpand( TQListViewItem* item ) //SLOT
|
|
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
tmptext = dynamic_cast<CollectionItem*>( item->parent() ) ?
|
|
|
|
|
static_cast<CollectionItem*>( item->parent() )->getSTQLText( 0 ) :
|
|
|
|
|
static_cast<CollectionItem*>( item->parent() )->getSQLText( 0 ) :
|
|
|
|
|
item->parent()->text( 0 );
|
|
|
|
|
isUnknown = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
@ -1015,7 +1015,7 @@ CollectionView::slotExpand( TQListViewItem* item ) //SLOT
|
|
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
tmptext = dynamic_cast<CollectionItem*> ( item->parent()->parent() ) ?
|
|
|
|
|
static_cast<CollectionItem*>( item->parent()->parent() )->getSTQLText( 0 ) :
|
|
|
|
|
static_cast<CollectionItem*>( item->parent()->parent() )->getSQLText( 0 ) :
|
|
|
|
|
item->parent()->parent()->text( 0 );
|
|
|
|
|
isUnknown = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
@ -1042,7 +1042,7 @@ CollectionView::slotExpand( TQListViewItem* item ) //SLOT
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tmptext = dynamic_cast<CollectionItem*>( item->parent() ) ?
|
|
|
|
|
static_cast<CollectionItem*>( item->parent() )->getSTQLText( 0 ) :
|
|
|
|
|
static_cast<CollectionItem*>( item->parent() )->getSQLText( 0 ) :
|
|
|
|
|
item->parent()->text( 0 );
|
|
|
|
|
isUnknown = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
@ -2175,7 +2175,7 @@ CollectionView::getTrueItemText( int cat, TQListViewItem* item ) const
|
|
|
|
|
if ( dynamic_cast<CollectionItem*>( item ) )
|
|
|
|
|
{
|
|
|
|
|
CollectionItem* collectItem = static_cast<CollectionItem*>( item );
|
|
|
|
|
trueItemText = collectItem->getSTQLText( 0 );
|
|
|
|
|
trueItemText = collectItem->getSQLText( 0 );
|
|
|
|
|
if ( cat == IdVisYearAlbum && !collectItem->isUnknown() )
|
|
|
|
|
trueItemText = trueItemText.right( trueItemText.length() - trueItemText.find( i18n( " - " ) ) - i18n( " - " ).length() );
|
|
|
|
|
}
|
|
|
|
@ -2389,7 +2389,7 @@ CollectionView::listSelected()
|
|
|
|
|
|
|
|
|
|
qb.addReturnValue( QueryBuilder::tabSong, QueryBuilder::valURL );
|
|
|
|
|
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( item )->getSTQLText( 0 );
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( item )->getSQLText( 0 );
|
|
|
|
|
unknownText = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
|
if ( !sampler )
|
|
|
|
@ -2470,7 +2470,7 @@ CollectionView::listSelected()
|
|
|
|
|
if ( q_cat1 == IdArtist )
|
|
|
|
|
qb.setOptions( QueryBuilder::optNoCompilations );
|
|
|
|
|
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( item )->getSTQLText( 0 );
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( item )->getSQLText( 0 );
|
|
|
|
|
unknownText = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
|
if( VisYearAlbum == 1 )
|
|
|
|
@ -2489,7 +2489,7 @@ CollectionView::listSelected()
|
|
|
|
|
qb.setOptions( QueryBuilder::optOnlyCompilations );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( child )->getSTQLText( 0 );
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( child )->getSQLText( 0 );
|
|
|
|
|
unknownText = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
|
if( VisYearAlbum == 2 )
|
|
|
|
@ -2574,7 +2574,7 @@ CollectionView::listSelected()
|
|
|
|
|
if ( q_cat1 == IdArtist )
|
|
|
|
|
qb.setOptions( QueryBuilder::optNoCompilations );
|
|
|
|
|
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( item )->getSTQLText( 0 );
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( item )->getSQLText( 0 );
|
|
|
|
|
unknownText = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
|
if( VisYearAlbum == 1 )
|
|
|
|
@ -2592,7 +2592,7 @@ CollectionView::listSelected()
|
|
|
|
|
else
|
|
|
|
|
qb.setOptions( QueryBuilder::optOnlyCompilations );
|
|
|
|
|
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( child )->getSTQLText( 0 );
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( child )->getSQLText( 0 );
|
|
|
|
|
unknownText = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
|
if( VisYearAlbum == 2 )
|
|
|
|
@ -2607,7 +2607,7 @@ CollectionView::listSelected()
|
|
|
|
|
|
|
|
|
|
qb.addMatch( q_cat2, tmptext, false, true );
|
|
|
|
|
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( grandChild )->getSTQLText( 0 );
|
|
|
|
|
tmptext = static_cast<CollectionItem*>( grandChild )->getSQLText( 0 );
|
|
|
|
|
unknownText = tmptext.isEmpty();
|
|
|
|
|
|
|
|
|
|
if( VisYearAlbum == 3 )
|
|
|
|
@ -3021,7 +3021,7 @@ CollectionView::incrementDepth( bool rerender /*= true*/ )
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
m_ipodFilters[m_currentDepth] << item->getSTQLText( 0 );
|
|
|
|
|
m_ipodFilters[m_currentDepth] << item->getSQLText( 0 );
|
|
|
|
|
|
|
|
|
|
// Save the selection
|
|
|
|
|
m_ipodSelected[m_currentDepth] << item->text( 0 );
|
|
|
|
|