X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Funicodedialog.h;h=4a8579a2048955461a1f4ded227e8690b3ab093f;hb=f8cedebe2666681c596f9e35bd29445e98681158;hp=3dde58c4058e4647b43d38ad525d9a12ae6c5c74;hpb=7dd5286bd12cb1654407283fdcf7ccf5e44615f8;p=kdenlive diff --git a/src/unicodedialog.h b/src/unicodedialog.h index 3dde58c4..4a8579a2 100644 --- a/src/unicodedialog.h +++ b/src/unicodedialog.h @@ -20,7 +20,7 @@ public: /** \brief The input method for the dialog. Atm only InputHex supported. */ enum InputMethod { InputHex, InputDec }; - UnicodeDialog(InputMethod inputMeth, QString lastUnicodeNumber); + UnicodeDialog(InputMethod inputMeth); ~UnicodeDialog(); /** \brief Returns infos about a unicode number. Extendable/improvable ;) */ @@ -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; @@ -55,11 +62,14 @@ private: int m_lastCursorPos; QString m_lastUnicodeNumber; + /** \brief Reads the last used unicode number from the config file. */ + void readChoices(); + /** \brief Writes the last used unicode number into the config file. */ + void writeChoices(); + signals: /** \brief Contains the selected unicode character; emitted when Enter is pressed. */ void charSelected(const QString&); - /** \brief Contains the last used unicode number. */ - void newUnicodeNumber(const QString&); private slots: void slotTextChanged(QString text);