]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.cpp
Fix tooltip (show correct shorcut
[kdenlive] / src / unicodedialog.cpp
index 51d462d6244595fa1e900c2b586190d0b6fd26de..1a954897a4f1c524dc0bc25b4d4c82a06adc69cb 100644 (file)
@@ -73,7 +73,7 @@ void UnicodeDialog::showLastUnicode()
     slotTextChanged(m_lastUnicodeNumber);
 }
 
-bool UnicodeDialog::controlCharacter(QString text)
+bool UnicodeDialog::controlCharacter(const QString &text)
 {
     bool isControlCharacter = false;
     QString t = text.toLower();
@@ -210,7 +210,7 @@ void UnicodeDialog::updateOverviewChars(uint unicode)
 
     for (i = 1; i <= 4; i++) {
         if (unicode > i && !controlCharacter(unicode - i)) {
-            left = " " + left;
+            left = ' ' + left;
             left = QChar(unicode - i) + left;
         }
     }
@@ -218,7 +218,7 @@ void UnicodeDialog::updateOverviewChars(uint unicode)
     for (i = 1; i <= 8; i++) {
         if (unicode + i <= MAX_UNICODE_V1 && !controlCharacter(unicode + i)) {
             right += QChar(unicode + i);
-            right += " ";
+            right += ' ';
         }
     }