Replace QString::right() with QString::endsWith() for better readability
QString::endsWith()
is more suitable for checking whether a string ends
with a certain substring or character.
QString::endsWith()
is more suitable for checking whether a string ends
with a certain substring or character.