diff options
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp b/src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp index 56fac47..3af0f1f 100644 --- a/src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp +++ b/src/scripttools/debugging/qscriptdebuggerlocalswidget.cpp @@ -156,6 +156,7 @@ void QScriptDebuggerLocalsWidgetPrivate::_q_onCompletionTaskFinished() QObject::connect(completer, SIGNAL(activated(QString)), q, SLOT(_q_insertCompletion(QString))); } +#ifndef QT_NO_STRINGLISTMODEL QStringListModel *model = qobject_cast<QStringListModel*>(completer->model()); if (!model) { model = new QStringListModel(q); @@ -165,6 +166,7 @@ void QScriptDebuggerLocalsWidgetPrivate::_q_onCompletionTaskFinished() for (int i = 0; i < task->resultCount(); ++i) strings.append(task->resultAt(i)); model->setStringList(strings); +#endif QString prefix = completingEditor->text().mid(task->position(), task->length()); completer->setCompletionPrefix(prefix); completingEditor->setCompleter(completer); |