From a47c7bb99e03c4b49a1662437e8683c3b2d50c29 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Mon, 14 Jul 2014 19:55:34 +0100
Subject: [PATCH] Include not used with Qt5

---
 src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp
index 6245c8620..d3a96e463 100644
--- a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp
+++ b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp
@@ -52,8 +52,11 @@
 #include <QDBusConnection>
 #include <QDBusPendingCallWatcher>
 #include <QImage>
-// QTextDocument provides Qt::escape()
-#include <QTextDocument>
+
+#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
+    // QTextDocument provides Qt::escape()
+    #include <QTextDocument>
+#endif
 
 namespace Tomahawk
 {