examples/tools/customcompleter/textedit.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    77         return;
    77         return;
    78 
    78 
    79     c->setWidget(this);
    79     c->setWidget(this);
    80     c->setCompletionMode(QCompleter::PopupCompletion);
    80     c->setCompletionMode(QCompleter::PopupCompletion);
    81     c->setCaseSensitivity(Qt::CaseInsensitive);
    81     c->setCaseSensitivity(Qt::CaseInsensitive);
    82     QObject::connect(c, SIGNAL(activated(const QString&)),
    82     QObject::connect(c, SIGNAL(activated(QString)),
    83                      this, SLOT(insertCompletion(const QString&)));
    83                      this, SLOT(insertCompletion(QString)));
    84 }
    84 }
    85 //! [2]
    85 //! [2]
    86 
    86 
    87 //! [3]
    87 //! [3]
    88 QCompleter *TextEdit::completer() const
    88 QCompleter *TextEdit::completer() const