Manual dialog test: Output URLs when testing QFileDialog
Change-Id: Icfaedcd68ff387cc888e41ec0b1db1810122b229 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
7935d86e7d
commit
5a168507b1
@ -505,8 +505,15 @@ void FileDialogPanel::accepted()
|
|||||||
Q_ASSERT(d);
|
Q_ASSERT(d);
|
||||||
m_result.clear();
|
m_result.clear();
|
||||||
QDebug(&m_result).nospace()
|
QDebug(&m_result).nospace()
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
|
<< "URLs: " << d->selectedUrls() << '\n'
|
||||||
|
#endif
|
||||||
<< "Files: " << d->selectedFiles()
|
<< "Files: " << d->selectedFiles()
|
||||||
<< "\nDirectory: " << d->directory().absolutePath()
|
<< "\nDirectory: "
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
|
<< d->directoryUrl() << ", "
|
||||||
|
#endif
|
||||||
|
<< d->directory().absolutePath()
|
||||||
<< "\nName filter: " << d->selectedNameFilter();
|
<< "\nName filter: " << d->selectedNameFilter();
|
||||||
QTimer::singleShot(0, this, SLOT(showAcceptedResult())); // Avoid problems with the closing (modal) dialog as parent.
|
QTimer::singleShot(0, this, SLOT(showAcceptedResult())); // Avoid problems with the closing (modal) dialog as parent.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user