Skip to content
  • David Faure's avatar
    Fix the emission of textEdited and textChanged in relation with completion: · b1ce8f1a
    David Faure authored
    - emit textEdited and textChanged when "accepting the autocompletion"
    - don't emit textChanged/textEdited twice when going up or down in the completion popup
    
    The updated behavior is therefore:
    * setText emits textChanged and userTextChanged, but not textEdited
    * typing emits all three signals
    * the suggestion from auto completion emits textChanged but not userTextChanged nor textEdited
    * accepting the autocompletion suggestion now emits all three signals too
    * selecting an item in the popup completion changes the lineedit text and emits all 3 signals
    * pressing Enter in the popup completion doesn't emit anything, the text is already there
    
    This makes textEdited useful again, so userTextChanged is now deprecated (okayed by Jacopo).
    CCMAIL: germain@ebooksfrance.org
    
    svn path=/trunk/KDE/kdelibs/; revision=1120672
    b1ce8f1a