diff options
Diffstat (limited to 'Swift/QtUI/QtTextEdit.h')
-rw-r--r-- | Swift/QtUI/QtTextEdit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtTextEdit.h b/Swift/QtUI/QtTextEdit.h index a940879..76087c9 100644 --- a/Swift/QtUI/QtTextEdit.h +++ b/Swift/QtUI/QtTextEdit.h @@ -7,6 +7,7 @@ #pragma once #include <QTextEdit> +#include <SwifTools/SpellParser.h> namespace Swift { class SpellChecker; @@ -21,7 +22,7 @@ namespace Swift { void returnPressed(); void unhandledKeyPressEvent(QKeyEvent* event); public slots: - void handleReplaceMisspellWord(const QString& word, const QPoint& position); + void handleReplaceMisspellWord(const QString& word, const boost::tuple<int,int>& wordPosition); protected: virtual void keyPressEvent(QKeyEvent* event); virtual void contextMenuEvent(QContextMenuEvent* event); @@ -29,6 +30,8 @@ namespace Swift { void handleTextChanged(); private: SpellChecker *checker_; + PositionPairVector misspelledPositions_; void underlineMisspells(); + boost::tuple<int,int> getWordFromCursor(int cursorPosition); }; } |