1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-28 03:32:27 +01:00

style & capitalization fixes

This commit is contained in:
Stefan Derkits 2013-01-09 15:34:44 +01:00
parent 7c64dd8c6b
commit 41c688aa68

@ -553,7 +553,7 @@ Tomahawk::EchonestControl::updateData()
QString songType = combo->currentText().toLower(); QString songType = combo->currentText().toLower();
if ( match->currentText() == "is not" ) if ( match->currentText() == "is not" )
songType.append(":false"); songType.append( ":false" );
m_data.first = Echonest::DynamicPlaylist::SongType; m_data.first = Echonest::DynamicPlaylist::SongType;
m_data.second = songType; m_data.second = songType;
@ -654,7 +654,7 @@ Tomahawk::EchonestControl::updateWidgetsFromData()
if ( match && combo ) { if ( match && combo ) {
match->setCurrentIndex( match->findData( m_matchData )); match->setCurrentIndex( match->findData( m_matchData ));
QString songType = m_data.second.toString().split(":").at(0); QString songType = m_data.second.toString().split( ":" ).at( 0 );
combo->setCurrentIndex( combo->findData( songType ) ); combo->setCurrentIndex( combo->findData( songType ) );
} }
} }
@ -906,9 +906,9 @@ Tomahawk::EchonestControl::calculateSummary()
Q_ASSERT( qobject_cast< QComboBox* >( m_match.data() ) ); Q_ASSERT( qobject_cast< QComboBox* >( m_match.data() ) );
QString isOrIsNot = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower(); QString isOrIsNot = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower();
if ( isOrIsNot == "is" ) if ( isOrIsNot == "is" )
summary = tr( "where Song Type is %1" ).arg( text ); summary = tr( "where song type is %1" ).arg( text );
else else
summary = tr( "where Song Type is not %1" ).arg( text ); summary = tr( "where song type is not %1" ).arg( text );
} }
m_summary = summary; m_summary = summary;