Remove a silly note from QFileDialog::getOpenFileNames documentation
I can't possibly understand the meaning of the note, especially given the snippet. (However ,it has been there since Qt 3, so perhaps it refers to some weird QValueList behavior?) Change-Id: I952e9a7cb687b94cfccb927eb359b635804f4ade Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
ff44440651
commit
7c46a96972
@ -2197,11 +2197,6 @@ QUrl QFileDialog::getOpenFileUrl(QWidget *parent,
|
||||
see the QFileDialog::Option enum for more information on the flags you can
|
||||
pass.
|
||||
|
||||
\note If you want to iterate over the list of files, you should iterate
|
||||
over a copy. For example:
|
||||
|
||||
\snippet code/src_gui_dialogs_qfiledialog.cpp 10
|
||||
|
||||
\warning Do not delete \a parent during the execution of the dialog. If you
|
||||
want to do this, you should create the dialog yourself using one of the
|
||||
QFileDialog constructors.
|
||||
|
@ -106,16 +106,6 @@ QStringList files = QFileDialog::getOpenFileNames(
|
||||
//! [9]
|
||||
|
||||
|
||||
//! [10]
|
||||
QStringList list = files;
|
||||
QStringList::Iterator it = list.begin();
|
||||
while(it != list.end()) {
|
||||
myProcessing(*it);
|
||||
++it;
|
||||
}
|
||||
//! [10]
|
||||
|
||||
|
||||
//! [11]
|
||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"),
|
||||
"/home/jana/untitled.png",
|
||||
|
Loading…
Reference in New Issue
Block a user