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:
parent
bee9a78e13
commit
1274a7e419
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user