]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.h
const'ref
[kdenlive] / src / unicodedialog.h
index eba5e40220c696afc7761dd47c5cf6adc54875bf..ba84005d15e9d98e3b3c22beefa0e6cb53d724d6 100644 (file)
@@ -28,6 +28,13 @@ public:
 
     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();
+
 private:
     Ui::UnicodeDialog_UI m_view;
 
@@ -41,7 +48,7 @@ private:
     /** \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);