Use isEmpty() instead of length()

This commit is contained in:
Andrew Udvare 2014-01-11 12:48:52 -08:00
parent f201a9925b
commit a11270f749
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ void LineEdit::set_text(const QString& text) {
// For some reason Qt will detect any text with LTR at the end as LTR, so instead
// compare only the first character
if (text.length()) {
if (!text.isEmpty()) {
set_rtl(QString(text.at(0)).isRightToLeft());
}
}