From 4dbb07f614c914e78437aacf7a1716f632da5e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Thu, 12 Jan 2023 14:33:09 +0100 Subject: 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 --- examples/widgets/doc/src/addressbook.qdoc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'examples/widgets/doc/src') 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 -- cgit v1.2.3