diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-07 17:53:37 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-07 17:53:37 -0600 |
commit | 312fe5fc29ec1a6428a870371ddf45c4e4a0cf39 (patch) | |
tree | ce2c4cb784d464b446a2a37841ef792e018fea55 | |
parent | aa049a28e994b123b9f00f175fc553331ac03cf6 (diff) | |
download | tdeaccessibility-312fe5fc29ec1a6428a870371ddf45c4e4a0cf39.tar.gz tdeaccessibility-312fe5fc29ec1a6428a870371ddf45c4e4a0cf39.zip |
Rename KComp to avoid conflicts with KDE4
-rw-r--r-- | kmouth/wordcompletion/wordcompletion.cpp | 10 | ||||
-rw-r--r-- | kmouth/wordcompletion/wordcompletion.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/kmouth/wordcompletion/wordcompletion.cpp b/kmouth/wordcompletion/wordcompletion.cpp index 994c0ac..1c49d86 100644 --- a/kmouth/wordcompletion/wordcompletion.cpp +++ b/kmouth/wordcompletion/wordcompletion.cpp @@ -26,7 +26,7 @@ private: bool wordsToSave; }; -WordCompletion::WordCompletion() : KCompletion () { +WordCompletion::WordCompletion() : TDECompletion () { d = new WordCompletionPrivate(); d->blockCurrentListSignal = false; d->wordsToSave = false; @@ -44,7 +44,7 @@ typedef TQValueList<Match> MatchList; TQString WordCompletion::makeCompletion(const TQString &text) { if (d->lastText != text) { d->lastText = text; - KCompletion::clear(); + TDECompletion::clear(); int border = text.findRev(TQRegExp("\\W")); TQString suffix = text.right (text.length() - border - 1).lower(); @@ -61,13 +61,13 @@ TQString WordCompletion::makeCompletion(const TQString &text) { MatchList::ConstIterator iter = matches.begin(); for (int count = 0; (iter != matches.end()) && (count < 10); ++iter, ++count) { int length = (*iter).second.length() + prefix.length() - text.length(); - KCompletion::addItem(text + (*iter).second.right(length), -(*iter).first); + TDECompletion::addItem(text + (*iter).second.right(length), -(*iter).first); } } } - // call the KCompletion::makeCompletion(...) method - return KCompletion::makeCompletion (text); + // call the TDECompletion::makeCompletion(...) method + return TDECompletion::makeCompletion (text); } TQStringList WordCompletion::wordLists() { diff --git a/kmouth/wordcompletion/wordcompletion.h b/kmouth/wordcompletion/wordcompletion.h index 2f92bc6..c7304f8 100644 --- a/kmouth/wordcompletion/wordcompletion.h +++ b/kmouth/wordcompletion/wordcompletion.h @@ -6,7 +6,7 @@ /** * This class does completion based on a dictionary of words. */ -class WordCompletion : public KCompletion { +class WordCompletion : public TDECompletion { friend class WordListWidget; Q_OBJECT |