X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Funicodedialog.cpp;h=d55c30dfaffe1edca32bda5b06fdb1b642d9e0f0;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=4ca3e0b6e7a6554004ccb9310ee5a8714a86627a;hpb=e0fa1332f109b6455207ea701da386b2fddddf09;p=kdenlive diff --git a/src/unicodedialog.cpp b/src/unicodedialog.cpp index 4ca3e0b6..d55c30df 100644 --- a/src/unicodedialog.cpp +++ b/src/unicodedialog.cpp @@ -70,14 +70,11 @@ UnicodeWidget::UnicodeWidget(UnicodeDialog::InputMethod inputMeth, QWidget *pare arrowDown->setToolTip(i18n("Next Unicode character (Arrow Down)")); unicodeNumber->setToolTip(i18n("Enter your Unicode number here. Allowed characters: [0-9] and [a-f].")); unicodeNumber->selectAll(); // Selection will be reset by setToolTip and similar, so set it here - } UnicodeWidget::~UnicodeWidget() { } - - /// METHODS void UnicodeWidget::showLastUnicode() @@ -123,7 +120,7 @@ bool UnicodeWidget::controlCharacter(uint value) QString UnicodeWidget::trimmedUnicodeNumber(QString text) { - while (text.length() > 0 && text.at(0) == QChar('0')) { + while (!text.isEmpty() && text.at(0) == QChar('0')) { text = text.remove(0, 1); } return text;