summaryrefslogtreecommitdiffstats
path: root/examples/widgets/dialogs/findfiles/window.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-05-09 12:42:18 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-12-27 08:40:22 +0000
commit0c4d31d8c9cdab18743bde17de5ea0bd0daf02e5 (patch)
treee7d3d60dc82876ad4fcf827072acb9451e4b56ab /examples/widgets/dialogs/findfiles/window.h
parentc4f397ee11fc3cea1fc132ebe1db24e3970bb477 (diff)
Improve the findfiles example: use QDirIterator, etc
It hasn't been necessary for a long time now to write the recursive file-find function manually. It has just been an obscurely documented feature of QDirIterator for far too long. Demonstrate the new QLocale::formattedDataSize() function. Also sync up the qdoc description of this example with the recent changes. Change-Id: I9c2bb15bb5ec353d38181b160f0be198774cbea2 Reviewed-by: Robin Burchell <robin.burchell@crimson.no> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/widgets/dialogs/findfiles/window.h')
-rw-r--r--examples/widgets/dialogs/findfiles/window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/dialogs/findfiles/window.h b/examples/widgets/dialogs/findfiles/window.h
index fe217381e2..949df704bb 100644
--- a/examples/widgets/dialogs/findfiles/window.h
+++ b/examples/widgets/dialogs/findfiles/window.h
@@ -79,7 +79,7 @@ private slots:
private:
QStringList findFiles(const QStringList &files, const QString &text);
- void showFiles(const QStringList &files);
+ void showFiles(const QStringList &paths);
QComboBox *createComboBox(const QString &text = QString());
void createFilesTable();