Thesaurus keyword combo completion (bug #8138).

This commit is contained in:
Pavel Sanda 2012-04-25 16:39:40 +02:00
parent 189bb91e58
commit 217ef5bf39

View File

@ -29,6 +29,7 @@
#include "support/lstrings.h"
#include <QAbstractItemModel>
#include <QCompleter>
#include <QHeaderView>
#include <QLineEdit>
#include <QPushButton>
@ -80,6 +81,10 @@ GuiThesaurus::GuiThesaurus(GuiView & lv)
languageCO->setModel(language_model);
languageCO->setModelColumn(2);
//bug #8138
if (entryCO->completer())
entryCO->completer()->setCompletionMode(QCompleter::PopupCompletion);
bc().setCancel(closePB);
bc().setApply(replacePB);
bc().addReadOnly(replaceED);