summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src
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/doc/src
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/doc/src')
-rw-r--r--examples/widgets/doc/src/addressbook.qdoc14
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/widgets/doc/src/addressbook.qdoc b/examples/widgets/doc/src/addressbook.qdoc
index 34d269004b..7ab50888c5 100644
--- a/examples/widgets/doc/src/addressbook.qdoc
+++ b/examples/widgets/doc/src/addressbook.qdoc
@@ -381,17 +381,15 @@
respective slots, we also connect \c AddressWidget's
\c selectionChanged() signal to its \c updateActions() slot.
- The \c openFile() function allows the user to choose a file with
- the \l{QFileDialog::getOpenFileName()}{open file dialog}. The chosen
- file has to be a custom \c{.dat} file that contains address book
- contacts. This function is a slot connected to \c openAct in the
- \uicontrol File menu.
+ The \c openFile() function opens a custom \c{addressbook.dat} file that
+ contains address book contacts. This function is a slot connected to
+ \c openAct in the \uicontrol File menu.
\snippet itemviews/addressbook/mainwindow.cpp 2
- The \c saveFile() function allows the user to save a file with
- the \l{QFileDialog::getSaveFileName()}{save file dialog}. This function
- is a slot connected to \c saveAct in the \uicontrol File menu.
+ The \c saveFile() function saves a custom \c{addressbook.dat} file that
+ will contain the address book contacts. This function is a slot connected
+ to \c saveAct in the \uicontrol File menu.
\snippet itemviews/addressbook/mainwindow.cpp 3