Skip to content

Commit

Permalink
CorePlugin: PROVISIONAL enable debug for Patricia
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidsastresas committed May 13, 2021
1 parent b77d79b commit cae0b28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/api/QGCCorePlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ class QGCCorePlugin_p
delete pMAVLink;
if(pConsole)
delete pConsole;
#if defined(QT_DEBUG)
// #if defined(QT_DEBUG)
if(pMockLink)
delete pMockLink;
if(pDebug)
delete pDebug;
if(pQmlTest)
delete pQmlTest;
#endif
// #endif
if(defaultOptions)
delete defaultOptions;
}
Expand All @@ -90,11 +90,11 @@ class QGCCorePlugin_p
QmlComponentInfo* pMAVLink = nullptr;
QmlComponentInfo* pConsole = nullptr;
QmlComponentInfo* pHelp = nullptr;
#if defined(QT_DEBUG)
// #if defined(QT_DEBUG)
QmlComponentInfo* pMockLink = nullptr;
QmlComponentInfo* pDebug = nullptr;
QmlComponentInfo* pQmlTest = nullptr;
#endif
// #endif

QGCOptions* defaultOptions = nullptr;
QVariantList settingsList;
Expand Down Expand Up @@ -171,7 +171,7 @@ QVariantList &QGCCorePlugin::settingsPages()
_p->pHelp = new QmlComponentInfo(tr("Help"),
QUrl::fromUserInput("qrc:/qml/HelpSettings.qml"));
_p->settingsList.append(QVariant::fromValue(reinterpret_cast<QmlComponentInfo*>(_p->pHelp)));
#if defined(QT_DEBUG)
// #if defined(QT_DEBUG)
//-- These are always present on Debug builds
_p->pMockLink = new QmlComponentInfo(tr("Mock Link"),
QUrl::fromUserInput("qrc:/qml/MockLink.qml"));
Expand All @@ -182,7 +182,7 @@ QVariantList &QGCCorePlugin::settingsPages()
_p->pQmlTest = new QmlComponentInfo(tr("Palette Test"),
QUrl::fromUserInput("qrc:/qml/QmlTest.qml"));
_p->settingsList.append(QVariant::fromValue(reinterpret_cast<QmlComponentInfo*>(_p->pQmlTest)));
#endif
//#endif
}
return _p->settingsList;
}
Expand Down

0 comments on commit cae0b28

Please sign in to comment.