diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-02-01 12:43:36 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-02-01 13:54:59 +0100 |
commit | 0cf48cb45d3816f231f5f7dd24225e77ef1603d7 (patch) | |
tree | 41f109483688a83698a793eec8eb91044f87005b /src/plugins/qmljseditor | |
parent | 450ad48fe7e4baec601138618e0e372a6f8f1ba5 (diff) | |
download | qt-creator-0cf48cb45d3816f231f5f7dd24225e77ef1603d7.tar.gz |
Introduced ASTFunctionValue.
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmlcodecompletion.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/qmljseditor/qmlcodecompletion.cpp b/src/plugins/qmljseditor/qmlcodecompletion.cpp index ef67358972..3c3f912aa5 100644 --- a/src/plugins/qmljseditor/qmlcodecompletion.cpp +++ b/src/plugins/qmljseditor/qmlcodecompletion.cpp @@ -424,10 +424,13 @@ void FunctionArgumentWidget::updateHintText() if (i != 0) prettyMethod += QLatin1String(", "); - prettyMethod += QLatin1String("arg"); + QString arg = m_signature.at(i); + if (arg.isEmpty()) { + arg = QLatin1String("arg"); + arg += QString::number(i + 1); + } - if (m_minimumArgumentCount != 1) - prettyMethod += QString::number(i + 1); + prettyMethod += arg; } prettyMethod += QLatin1Char(')'); |