]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.cpp
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / unicodedialog.cpp
index 0fcbc253df643901258f06915c4e73a5c1ee13fc..d55c30dfaffe1edca32bda5b06fdb1b642d9e0f0 100644 (file)
@@ -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;
@@ -222,14 +219,14 @@ void UnicodeWidget::updateOverviewChars(uint unicode)
     QString right;
     uint i;
 
-    for (i = 1; i <= 4; i++) {
+    for (i = 1; i <= 4; ++i) {
         if (unicode > i && !controlCharacter(unicode - i)) {
             left = ' ' + left;
             left = QChar(unicode - i) + left;
         }
     }
 
-    for (i = 1; i <= 8; i++) {
+    for (i = 1; i <= 8; ++i) {
         if (unicode + i <= MAX_UNICODE_V1 && !controlCharacter(unicode + i)) {
             right += QChar(unicode + i);
             right += ' ';