Fix build error when QT_NO_FILESYSTEMWATCHER is set

QPollingFileSystemWatcherEngine inherits from QFileSystemWatcherEngine.
This class should be covered by !QT_NO_FILESYSTEMWATCHER.

Change-Id: I053a873018cf3c9c443435c9b3f44240b0965c24
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
sh kim 2012-03-14 15:38:10 +09:00 committed by Qt by Nokia
parent 255079124a
commit ba061da5f0
2 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,8 @@
#include "qfilesystemwatcher_polling_p.h"
#include <QtCore/qtimer.h>
#ifndef QT_NO_FILESYSTEMWATCHER
QT_BEGIN_NAMESPACE
QPollingFileSystemWatcherEngine::QPollingFileSystemWatcherEngine(QObject *parent)
@ -149,3 +151,4 @@ void QPollingFileSystemWatcherEngine::timeout()
}
QT_END_NAMESPACE
#endif // !QT_NO_FILESYSTEMWATCHER

View File

@ -62,6 +62,7 @@
#include "qfilesystemwatcher_p.h"
#ifndef QT_NO_FILESYSTEMWATCHER
QT_BEGIN_NAMESPACE
enum { PollingInterval = 1000 };
@ -122,6 +123,6 @@ private:
};
QT_END_NAMESPACE
#endif // !QT_NO_FILESYSTEMWATCHER
#endif // QFILESYSTEMWATCHER_POLLING_P_H