summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwindow/background_renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/qopenglwindow/background_renderer.h')
-rw-r--r--examples/opengl/qopenglwindow/background_renderer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/opengl/qopenglwindow/background_renderer.h b/examples/opengl/qopenglwindow/background_renderer.h
index f7683db3d6..d99b7ddbeb 100644
--- a/examples/opengl/qopenglwindow/background_renderer.h
+++ b/examples/opengl/qopenglwindow/background_renderer.h
@@ -54,7 +54,9 @@
#include <QObject>
#include <QFile>
#include <QDateTime>
+#if QT_CONFIG(filesystemwatcher)
#include <QFileSystemWatcher>
+#endif
#include <QOpenGLVertexArrayObject>
#include <QOpenGLBuffer>
#include <QOpenGLShaderProgram>
@@ -71,7 +73,7 @@ public:
private:
void fileChanged(const QString &path);
bool m_recompile_shaders;
-#ifndef QT_NO_FILESYSTEMWATCHER
+#if QT_CONFIG(filesystemwatcher)
QFileSystemWatcher m_watcher;
#endif
QString m_fragment_file;