Skip to content

Instantly share code, notes, and snippets.

@jorgicio
Created October 17, 2018 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgicio/18279ea9474be93d9ef6458f4c7d3de2 to your computer and use it in GitHub Desktop.
Save jorgicio/18279ea9474be93d9ef6458f4c7d3de2 to your computer and use it in GitHub Desktop.
files/nitroshare-qt-5.11-compatibility.patch
diff -Naur a/src/application/splashdialog.cpp b/src/application/splashdialog.cpp
--- a/src/application/splashdialog.cpp 2018-10-17 20:46:46.215724733 -0300
+++ b/src/application/splashdialog.cpp 2018-10-17 20:52:08.809896702 -0300
@@ -24,6 +24,15 @@
#include <QApplication>
#include <QDesktopWidget>
+/*
+* Check if Qt version is older than 5.11 in order to
+* include the QtStyle header, older versions didn't
+* need it. Otherwise, it won't build.
+*/
+#include <QtGlobal>
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
+#include <QStyle>
+#endif
#include "splashdialog.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment