]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.h
use const'ref
[kdenlive] / src / unicodedialog.h
index 117995884e3e2a4c9fc0287dd3592125de9b5fb3..74f2cec04805d85ec90ce60e74856012858a5ffe 100644 (file)
@@ -24,10 +24,13 @@ public:
     ~UnicodeDialog();
 
     /** \brief Returns infos about a unicode number. Extendable/improvable ;) */
-    QString unicodeInfo(QString unicode);
+    QString unicodeInfo(const QString &unicode);
 
     void showLastUnicode();
 
+protected:
+    virtual void wheelEvent(QWheelEvent * event);
+
 public slots:
     /** \brief Override QDialog::exec() to assure the focus being on the unicode input field */
     int exec();
@@ -41,16 +44,16 @@ private:
     InputMethod inputMethod;
 
     /** \brief Validates text and removes all invalid characters (non-hex e.g.) */
-    QString validateText(QString text);
+    QString validateText(const QString &text);
     /** \brief Removes all leading zeros */
     QString trimmedUnicodeNumber(QString text);
     /** \brief Checks whether the given string is a control character */
-    bool controlCharacter(QString text);
+    bool controlCharacter(const QString& text);
     /** \brief Checks whether the given uint is a control character */
     bool controlCharacter(uint value);
 
     /** \brief Returns the next available unicode. */
-    QString nextUnicode(QString text, Direction direction);
+    QString nextUnicode(const QString &text, Direction direction);
 
     /** \brief Paints previous and next characters around current char */
     void updateOverviewChars(uint unicode);