Skip to content

Instantly share code, notes, and snippets.

@jorgicio
Created October 17, 2018 23:59
Show Gist options
  • Save jorgicio/7d384466dd3f85a7bd1f7a7be699dce9 to your computer and use it in GitHub Desktop.
Save jorgicio/7d384466dd3f85a7bd1f7a7be699dce9 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 or equal than 5.11 in order to
+* include the QStyle 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