summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfilesystemmodel
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-10-11 16:09:47 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-10-12 12:57:01 (GMT)
commit0dd8d6e60a850b42b75d64ccc7eb793ae5c1549b (patch)
tree208bfa77381b03202481042505c0a884b2be836b /tests/auto/qfilesystemmodel
parent2030d7894d119a207f872f23fc06ab3f934073f3 (diff)
downloadQt-0dd8d6e60a850b42b75d64ccc7eb793ae5c1549b.zip
Qt-0dd8d6e60a850b42b75d64ccc7eb793ae5c1549b.tar.gz
Qt-0dd8d6e60a850b42b75d64ccc7eb793ae5c1549b.tar.bz2
Fix compilation of two autotests
These tests did not link when QT_BUILD_INTERNAL was not defined, as one of the private headers was causing QFileInfoGatherer::~QFileInfoGatherer to be referenced Reviewed-By: Thomas Zander
Diffstat (limited to 'tests/auto/qfilesystemmodel')
-rw-r--r--tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
index c234c96..a391eb9 100644
--- a/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
+++ b/tests/auto/qfilesystemmodel/tst_qfilesystemmodel.cpp
@@ -41,7 +41,10 @@
#include <QtTest/QtTest>
+#ifdef QT_BUILD_INTERNAL
#include "../../../src/gui/dialogs/qfilesystemmodel_p.h"
+#endif
+#include <QFileSystemModel>
#include <QFileIconProvider>
#include <QTreeView>
#include <QHeaderView>
@@ -826,8 +829,10 @@ void tst_QFileSystemModel::sort()
MyFriendFileSystemModel *myModel = new MyFriendFileSystemModel();
QTreeView *tree = new QTreeView();
+#ifdef QT_BUILD_INTERNAL
if (fileDialogMode)
myModel->d_func()->disableRecursiveSort = true;
+#endif
QDir dir(QDir::tempPath());
//initialize the randomness