Commit e243aa7d authored by Ronan Abhamon's avatar Ronan Abhamon

feat(App): display an error box if qt version is lower than 5.8.0

parent 15aaff8a
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <QDirIterator> #include <QDirIterator>
#include <QFontDatabase> #include <QFontDatabase>
#include <QMessageBox>
#include <QScreen> #include <QScreen>
#include "gitversion.h" #include "gitversion.h"
...@@ -31,6 +32,7 @@ ...@@ -31,6 +32,7 @@
// Must be unique. Used by `SingleApplication` and `Paths`. // Must be unique. Used by `SingleApplication` and `Paths`.
#define APPLICATION_NAME "linphone" #define APPLICATION_NAME "linphone"
#define APPLICATION_VERSION LINPHONE_QT_GIT_VERSION #define APPLICATION_VERSION LINPHONE_QT_GIT_VERSION
#define APPLICATION_MINIMAL_QT_VERSION "5.8.0"
#define DEFAULT_FONT "Noto Sans" #define DEFAULT_FONT "Noto Sans"
...@@ -39,6 +41,8 @@ using namespace std; ...@@ -39,6 +41,8 @@ using namespace std;
// ============================================================================= // =============================================================================
int main (int argc, char *argv[]) { int main (int argc, char *argv[]) {
QT_REQUIRE_VERSION(argc, argv, APPLICATION_MINIMAL_QT_VERSION);
// Disable QML cache. Avoid malformed cache. // Disable QML cache. Avoid malformed cache.
qputenv("QML_DISABLE_DISK_CACHE", "true"); qputenv("QML_DISABLE_DISK_CACHE", "true");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment