Namespace copy of QFileSystemIterator in QDirIterator benchmark
Otherwise you cannot link it statically against QtCore. Change-Id: I4ac35602cea2192974f3e96ecad35edac976ce27 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
53b83ac413
commit
5ab74ffca1
@ -223,12 +223,12 @@ void tst_qdiriterator::fsiterator()
|
||||
int c = 0;
|
||||
|
||||
dump && printf("\n\n\n\n");
|
||||
QFileSystemIterator dir(dirpath,
|
||||
QDirIteratorTest::QFileSystemIterator dir(dirpath,
|
||||
//QDir::AllEntries | QDir::Hidden | QDir::NoDotAndDotDot,
|
||||
//QDir::AllEntries | QDir::Hidden,
|
||||
//QDir::Files | QDir::NoDotAndDotDot,
|
||||
QDir::Files,
|
||||
QFileSystemIterator::Subdirectories);
|
||||
QDirIteratorTest::QFileSystemIterator::Subdirectories);
|
||||
|
||||
for (; !dir.atEnd(); dir.next()) {
|
||||
dump && printf("%d %s\n",
|
||||
|
@ -99,6 +99,8 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QDirIteratorTest {
|
||||
|
||||
class QFileSystemIteratorPrivate
|
||||
{
|
||||
public:
|
||||
@ -671,4 +673,6 @@ QString QFileSystemIterator::path() const
|
||||
return QString::fromLocal8Bit(d->m_dirPaths.top());
|
||||
}
|
||||
|
||||
} // QDirIteratorTest::
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -38,6 +38,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QDirIteratorTest {
|
||||
|
||||
class QFileSystemIteratorPrivate;
|
||||
class //Q_CORE_EXPORT
|
||||
@ -81,6 +82,8 @@ private:
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QFileSystemIterator::IteratorFlags)
|
||||
|
||||
} // namespace QDirIteratorTest
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user