mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
better grammar
(cherry picked from commit 7676f43a79e12c890c1b57f716249c68fc0ea6ac)
This commit is contained in:
@@ -688,11 +688,16 @@ Tomahawk::EchonestControl::calculateSummary()
|
|||||||
QString ascdesc = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower();
|
QString ascdesc = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower();
|
||||||
|
|
||||||
summary = QString( "sorted in %1 %2 order" ).arg( ascdesc ).arg( sortType );
|
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( !m_input.isNull() );
|
||||||
Q_ASSERT( qobject_cast< QComboBox* >( m_input.data() ) );
|
Q_ASSERT( qobject_cast< QComboBox* >( m_input.data() ) );
|
||||||
QString text = qobject_cast< QComboBox* >( m_input.data() )->currentText().toLower();
|
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;
|
m_summary = summary;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user