summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/addressbook/addresswidget.cpp
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2023-01-12 14:33:09 +0100
committerJan Arve Sæther <jan-arve.saether@qt.io>2023-01-13 19:21:44 +0000
commit4dbb07f614c914e78437aacf7a1716f632da5e8a (patch)
treee0f114e4dcf4d6999ae1f8d4fffffe07ae5f3c35 /examples/widgets/itemviews/addressbook/addresswidget.cpp
parent19ca03c21c2cf69fdec4dd8d6a03b92eb96314ca (diff)
Don't use file dialog in the address book example
On small screen devices such as iPhone targets, the save file dialog is using a non-native dialog, and it doesn't fit the screen real estate to the extent that the [Ok] button is clipped away. In addition, the open file dialog and the save file dialog doesn't cooperate very well on platforms such as iOS without more plumbing. Since using the file dialog is out of the scope for this example we remove all usages of it. Pick-to: 6.5 Change-Id: Ie165355ed0b671d93e44d2d55791156367b0ea5c Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/widgets/itemviews/addressbook/addresswidget.cpp')
-rw-r--r--examples/widgets/itemviews/addressbook/addresswidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/itemviews/addressbook/addresswidget.cpp b/examples/widgets/itemviews/addressbook/addresswidget.cpp
index 6be8867a94..bde1cdc334 100644
--- a/examples/widgets/itemviews/addressbook/addresswidget.cpp
+++ b/examples/widgets/itemviews/addressbook/addresswidget.cpp
@@ -146,7 +146,7 @@ void AddressWidget::setupTabs()
//! [1]
//! [7]
-void AddressWidget::readFromFile(const QString &fileName)
+void AddressWidget::readFromFile()
{
QFile file(fileName);
@@ -171,7 +171,7 @@ void AddressWidget::readFromFile(const QString &fileName)
//! [7]
//! [6]
-void AddressWidget::writeToFile(const QString &fileName)
+void AddressWidget::writeToFile()
{
QFile file(fileName);