path: root/examples/widgets/dialogs/findfiles/window.h
diff options
authorFriedemann Kleint <>2016-07-05 13:26:53 +0200
committerFriedemann Kleint <>2016-08-03 11:53:55 +0000
commitd1a30be5abcc2d5e5340866434b2691275a135a6 (patch)
tree968a76a1716a7cec5438dfa45dc41021c326db7b /examples/widgets/dialogs/findfiles/window.h
parentd5be0d30588f6ccd971f73a3c030f9c10d8a6b4e (diff)
Polish the findfiles example to be actually useful
- Simplify the code, remove unused members - Fix the translations of plurals to use %n - Add tooltip displaying full paths in list - Add context menu allowing to copy the name and open - Display the correct slashes on Windows - Connect the returnPressed() signals of the line edits - Make the search recursive - Do not search binary files by checking the mime type Change-Id: I3663799c88931db1f58c03ea35211e7ab03737ec Reviewed-by: Topi Reiniƶ <>
Diffstat (limited to 'examples/widgets/dialogs/findfiles/window.h')
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/widgets/dialogs/findfiles/window.h b/examples/widgets/dialogs/findfiles/window.h
index 89dd87b83b..119c0fa100 100644
--- a/examples/widgets/dialogs/findfiles/window.h
+++ b/examples/widgets/dialogs/findfiles/window.h
@@ -63,7 +63,9 @@ public:
private slots:
void browse();
void find();
+ void animateFindClick();
void openFileOfItem(int row, int column);
+ void contextMenu(const QPoint &pos);
QStringList findFiles(const QStringList &files, const QString &text);
@@ -74,11 +76,7 @@ private:
QComboBox *fileComboBox;
QComboBox *textComboBox;
QComboBox *directoryComboBox;
- QLabel *fileLabel;
- QLabel *textLabel;
- QLabel *directoryLabel;
QLabel *filesFoundLabel;
- QPushButton *browseButton;
QPushButton *findButton;
QTableWidget *filesTable;