mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-08 18:12:41 +02:00
better grammar
(cherry picked from commit 7676f43a79e12c890c1b57f716249c68fc0ea6ac)
This commit is contained in:
parent
106bf6c08b
commit
ba3ce4bdb9
@ -688,11 +688,16 @@ Tomahawk::EchonestControl::calculateSummary()
|
||||
QString ascdesc = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower();
|
||||
|
||||
summary = QString( "sorted in %1 %2 order" ).arg( ascdesc ).arg( sortType );
|
||||
} else if( selectedType() == "Mood" || selectedType() == "Style" ) {
|
||||
} else if( selectedType() == "Mood" ) {
|
||||
Q_ASSERT( !m_input.isNull() );
|
||||
Q_ASSERT( qobject_cast< QComboBox* >( m_input.data() ) );
|
||||
QString text = qobject_cast< QComboBox* >( m_input.data() )->currentText().toLower();
|
||||
summary = QString( "with %1 %2" ).arg( selectedType() == "Mood" ? "mood" : "style" ).arg( text );
|
||||
summary = QString( "with a %1 mood" ).arg( text );
|
||||
} else if( selectedType() == "Style" ) {
|
||||
Q_ASSERT( !m_input.isNull() );
|
||||
Q_ASSERT( qobject_cast< QComboBox* >( m_input.data() ) );
|
||||
QString text = qobject_cast< QComboBox* >( m_input.data() )->currentText().toLower();
|
||||
summary = QString( "in a %1 style" ).arg( text );
|
||||
}
|
||||
m_summary = summary;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user