Blob Blame History Raw
From ac023314c5960e4010547c119d98d74dee8524c6 Mon Sep 17 00:00:00 2001
From: Robin Lee <cheeselee@fedoraproject.org>
Date: Thu, 6 Aug 2020 22:19:27 +0800
Subject: [PATCH] Fix build with Qt 5.14

---
 src/utils.cpp | 1 -
 src/utils.h   | 4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/utils.cpp b/src/utils.cpp
index 5f47fe9..51c074a 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -21,7 +21,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hashqstring.h"
 #include "utils.h"
 #include <QApplication>
 #include <QDateTime>
diff --git a/src/utils.h b/src/utils.h
index c76ec2c..08081e0 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -22,8 +22,10 @@
  */
 #ifndef UTILS_H
 #define UTILS_H
-
+#include <QtGlobal>
+#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
 #include "hashqstring.h"
+#endif
 #include "find_window_title.h"
 #include <dwindowmanager.h>
 #include <QFileInfoList>
-- 
2.26.2