Doc: Updated code sample to match documentation of QCompleter

The QCompleter documentation mentions QFileSystemModel while the code
sample still uses QDirModel. This patch fixes this by updating the code
sample.

Change-Id: I99a0d2419efcf781af3e9530508df088d77fbbfa
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Samuel Gaist 2016-12-14 22:04:37 +01:00
parent bee9a78e13
commit 1274a7e419

View File

@ -62,7 +62,7 @@ lineEdit->setCompleter(completer);
//! [1]
QCompleter *completer = new QCompleter(this);
completer->setModel(new QDirModel(completer));
completer->setModel(new QFileSystemModel(completer));
lineEdit->setCompleter(completer);
//! [1]