diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-04-15 22:10:15 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-04-24 11:05:12 +0200 |
commit | 153b75db83ca4d3db26829bd85271e7fa88b402c (patch) | |
tree | 4257a712d61c086857a246bc12ee46e3125438b3 /examples/assistant/simpletextviewer/findfiledialog.h | |
parent | 492fd5bb5ebbe4300a67e10aa0eb52a633c63bfe (diff) |
Polish the SimpleTextViewer example
- Port to Qt 5 connection syntax, fixing error in Qt 6
QObject::connect: No such signal QComboBox::currentIndexChanged(QString) in findfiledialog.cpp:194
- Remove unused functions and parameters to avoid QOverload
- Add process error handling
Pick-to: 5.15
Change-Id: I923f44ce0eb27b7f73f9a0e16c11f48a80a0c03a
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'examples/assistant/simpletextviewer/findfiledialog.h')
-rw-r--r-- | examples/assistant/simpletextviewer/findfiledialog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/assistant/simpletextviewer/findfiledialog.h b/examples/assistant/simpletextviewer/findfiledialog.h index 6ca57b061..605da0954 100644 --- a/examples/assistant/simpletextviewer/findfiledialog.h +++ b/examples/assistant/simpletextviewer/findfiledialog.h @@ -76,7 +76,7 @@ public: private slots: void browse(); void help(); - void openFile(QTreeWidgetItem *item = nullptr); + void openFile(); void update(); private: |