Manual dialog test: Output URLs when testing QFileDialog

Change-Id: Icfaedcd68ff387cc888e41ec0b1db1810122b229
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Friedemann Kleint 2019-04-04 09:07:22 +02:00
parent 7935d86e7d
commit 5a168507b1

View File

@ -505,8 +505,15 @@ void FileDialogPanel::accepted()
Q_ASSERT(d);
m_result.clear();
QDebug(&m_result).nospace()
#if QT_VERSION >= 0x050000
<< "URLs: " << d->selectedUrls() << '\n'
#endif
<< "Files: " << d->selectedFiles()
<< "\nDirectory: " << d->directory().absolutePath()
<< "\nDirectory: "
#if QT_VERSION >= 0x050000
<< d->directoryUrl() << ", "
#endif
<< d->directory().absolutePath()
<< "\nName filter: " << d->selectedNameFilter();
QTimer::singleShot(0, this, SLOT(showAcceptedResult())); // Avoid problems with the closing (modal) dialog as parent.
}