X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Funicodedialog.h;h=4a8579a2048955461a1f4ded227e8690b3ab093f;hb=3764c86b800e4bda12a212d1ec3765e0aa95812a;hp=009d2349436573d395964c934a08efc21ce64066;hpb=ca8cd6607f6277a27b5654dafe3780235b0bc7a0;p=kdenlive diff --git a/src/unicodedialog.h b/src/unicodedialog.h index 009d2349..4a8579a2 100644 --- a/src/unicodedialog.h +++ b/src/unicodedialog.h @@ -24,10 +24,17 @@ public: ~UnicodeDialog(); /** \brief Returns infos about a unicode number. Extendable/improvable ;) */ - QString unicodeInfo(QString unicode_number); + QString unicodeInfo(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(); + private: Ui::UnicodeDialog_UI m_view; @@ -52,8 +59,13 @@ private: void updateOverviewChars(uint unicode); void clearOverviewChars(); - int lastCursorPos; - QString lastUnicodeNumber; + 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. */