mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(App): display an error box if qt version is lower than 5.8.0
This commit is contained in:
parent
15aaff8a3b
commit
e243aa7dd9
1 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <QDirIterator>
|
||||
#include <QFontDatabase>
|
||||
#include <QMessageBox>
|
||||
#include <QScreen>
|
||||
|
||||
#include "gitversion.h"
|
||||
|
|
@ -31,6 +32,7 @@
|
|||
// Must be unique. Used by `SingleApplication` and `Paths`.
|
||||
#define APPLICATION_NAME "linphone"
|
||||
#define APPLICATION_VERSION LINPHONE_QT_GIT_VERSION
|
||||
#define APPLICATION_MINIMAL_QT_VERSION "5.8.0"
|
||||
|
||||
#define DEFAULT_FONT "Noto Sans"
|
||||
|
||||
|
|
@ -39,6 +41,8 @@ using namespace std;
|
|||
// =============================================================================
|
||||
|
||||
int main (int argc, char *argv[]) {
|
||||
QT_REQUIRE_VERSION(argc, argv, APPLICATION_MINIMAL_QT_VERSION);
|
||||
|
||||
// Disable QML cache. Avoid malformed cache.
|
||||
qputenv("QML_DISABLE_DISK_CACHE", "true");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue