|
|
|
@ -131,6 +131,14 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*)
@@ -131,6 +131,14 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*)
|
|
|
|
|
return mavManager; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if defined(QGC_GST_STREAMING) |
|
|
|
|
static void qgcputenv(const QString& key, const QString& root, const QString& path) |
|
|
|
|
{ |
|
|
|
|
QString value = root + path; |
|
|
|
|
qputenv(key.toStdString().c_str(), QByteArray(value.toStdString().c_str())); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Constructor for the main application. |
|
|
|
|
* |
|
|
|
@ -141,12 +149,6 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*)
@@ -141,12 +149,6 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*)
|
|
|
|
|
* @param argv The string array of parameters |
|
|
|
|
**/ |
|
|
|
|
|
|
|
|
|
static void qgcputenv(const QString& key, const QString& root, const QString& path) |
|
|
|
|
{ |
|
|
|
|
QString value = root + path; |
|
|
|
|
qputenv(key.toStdString().c_str(), QByteArray(value.toStdString().c_str())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) |
|
|
|
|
: QApplication(argc, argv) |
|
|
|
|
, _runningUnitTests(unitTesting) |
|
|
|
|