summaryrefslogtreecommitdiffstats
path: root/examples/tools/customcompleter/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tools/customcompleter/textedit.cpp')
-rw-r--r--examples/tools/customcompleter/textedit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tools/customcompleter/textedit.cpp b/examples/tools/customcompleter/textedit.cpp
index 83ab070..5965368 100644
--- a/examples/tools/customcompleter/textedit.cpp
+++ b/examples/tools/customcompleter/textedit.cpp
@@ -79,8 +79,8 @@ void TextEdit::setCompleter(QCompleter *completer)
c->setWidget(this);
c->setCompletionMode(QCompleter::PopupCompletion);
c->setCaseSensitivity(Qt::CaseInsensitive);
- QObject::connect(c, SIGNAL(activated(const QString&)),
- this, SLOT(insertCompletion(const QString&)));
+ QObject::connect(c, SIGNAL(activated(QString)),
+ this, SLOT(insertCompletion(QString)));
}
//! [2]