~beernarrd/ubuntu-keyboard/slovenian-layout

« back to all changes in this revision

Viewing changes to src/lib/logic/eventhandler.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-05-27 15:37:47 UTC
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: package-import@ubuntu.com-20140527153747-1kyarbk91aon0tu6
Tags: upstream-0.99.trunk.phablet2+14.10.20140527
ImportĀ upstreamĀ versionĀ 0.99.trunk.phablet2+14.10.20140527

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
EventHandler::~EventHandler()
48
48
{}
49
49
 
50
 
void EventHandler::onWordCandidatePressed(QString word)
 
50
void EventHandler::onWordCandidatePressed(QString word, bool userInput)
51
51
{
52
 
    WordCandidate candidate(WordCandidate::SourcePrediction, word);
 
52
    WordCandidate candidate(userInput ? WordCandidate::SourceUser 
 
53
                                      : WordCandidate::SourcePrediction, word);
53
54
    Q_EMIT wordCandidatePressed(candidate);
54
55
}
55
56
 
56
 
void EventHandler::onWordCandidateReleased(QString word)
 
57
void EventHandler::onWordCandidateReleased(QString word, bool userInput)
57
58
{
58
 
    WordCandidate candidate(WordCandidate::SourcePrediction, word);
 
59
    WordCandidate candidate(userInput ? WordCandidate::SourceUser 
 
60
                                      : WordCandidate::SourcePrediction, word);
59
61
    Q_EMIT wordCandidateReleased(candidate);
60
62
}
61
63