1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Revert "Merged in paul_jewell/librepilot/LP-53_disable_usage_tracker_plugin (pull request #43)"

This reverts commit c00ea092bc, reversing
changes made to d207f848ee.
This commit is contained in:
Paul Jewell 2015-09-11 21:05:41 +01:00
parent 26289e63ae
commit 3aa7e2bb24
3 changed files with 29 additions and 38 deletions

View File

@ -128,8 +128,7 @@ QWidget *GeneralSettings::createPage(QWidget *parent)
m_page->checkAutoSelect->setChecked(m_autoSelect); m_page->checkAutoSelect->setChecked(m_autoSelect);
m_page->cbUseUDPMirror->setChecked(m_useUDPMirror); m_page->cbUseUDPMirror->setChecked(m_useUDPMirror);
m_page->cbExpertMode->setChecked(m_useExpertMode); m_page->cbExpertMode->setChecked(m_useExpertMode);
// Usage data collection temporarily disabled m_page->cbUsageData->setChecked(m_collectUsageData);
// m_page->cbUsageData->setChecked(m_collectUsageData);
m_page->colorButton->setColor(StyleHelper::baseColor()); m_page->colorButton->setColor(StyleHelper::baseColor());
connect(m_page->resetButton, SIGNAL(clicked()), this, SLOT(resetInterfaceColor())); connect(m_page->resetButton, SIGNAL(clicked()), this, SLOT(resetInterfaceColor()));
@ -150,8 +149,7 @@ void GeneralSettings::apply()
m_useExpertMode = m_page->cbExpertMode->isChecked(); m_useExpertMode = m_page->cbExpertMode->isChecked();
m_autoConnect = m_page->checkAutoConnect->isChecked(); m_autoConnect = m_page->checkAutoConnect->isChecked();
m_autoSelect = m_page->checkAutoSelect->isChecked(); m_autoSelect = m_page->checkAutoSelect->isChecked();
// Usage data collection temporarily disabled setCollectUsageData(m_page->cbUsageData->isChecked());
// setCollectUsageData(m_page->cbUsageData->isChecked());
} }
void GeneralSettings::finish() void GeneralSettings::finish()
@ -164,14 +162,13 @@ void GeneralSettings::readSettings(QSettings *qs)
qs->beginGroup(QLatin1String("General")); qs->beginGroup(QLatin1String("General"));
m_language = qs->value(QLatin1String("OverrideLanguage"), QLocale::system().name()).toString(); m_language = qs->value(QLatin1String("OverrideLanguage"), QLocale::system().name()).toString();
m_saveSettingsOnExit = qs->value(QLatin1String("SaveSettingsOnExit"), m_saveSettingsOnExit).toBool(); m_saveSettingsOnExit = qs->value(QLatin1String("SaveSettingsOnExit"), m_saveSettingsOnExit).toBool();
m_autoConnect = qs->value(QLatin1String("AutoConnect"), m_autoConnect).toBool(); m_autoConnect = qs->value(QLatin1String("AutoConnect"), m_autoConnect).toBool();
m_autoSelect = qs->value(QLatin1String("AutoSelect"), m_autoSelect).toBool(); m_autoSelect = qs->value(QLatin1String("AutoSelect"), m_autoSelect).toBool();
m_useUDPMirror = qs->value(QLatin1String("UDPMirror"), m_useUDPMirror).toBool(); m_useUDPMirror = qs->value(QLatin1String("UDPMirror"), m_useUDPMirror).toBool();
m_useExpertMode = qs->value(QLatin1String("ExpertMode"), m_useExpertMode).toBool(); m_useExpertMode = qs->value(QLatin1String("ExpertMode"), m_useExpertMode).toBool();
// Usage data collection temporarily disabled m_collectUsageData = qs->value(QLatin1String("CollectUsageData"), m_collectUsageData).toBool();
// m_collectUsageData = qs->value(QLatin1String("CollectUsageData"), m_collectUsageData).toBool(); m_showUsageDataDisclaimer = qs->value(QLatin1String("ShowUsageDataDisclaimer"), m_showUsageDataDisclaimer).toBool();
// m_showUsageDataDisclaimer = qs->value(QLatin1String("ShowUsageDataDisclaimer"), m_showUsageDataDisclaimer).toBool(); m_lastUsageHash = qs->value(QLatin1String("LastUsageHash"), m_lastUsageHash).toString();
m_lastUsageHash = qs->value(QLatin1String("LastUsageHash"), m_lastUsageHash).toString();
qs->endGroup(); qs->endGroup();
} }
@ -190,9 +187,8 @@ void GeneralSettings::saveSettings(QSettings *qs)
qs->setValue(QLatin1String("AutoSelect"), m_autoSelect); qs->setValue(QLatin1String("AutoSelect"), m_autoSelect);
qs->setValue(QLatin1String("UDPMirror"), m_useUDPMirror); qs->setValue(QLatin1String("UDPMirror"), m_useUDPMirror);
qs->setValue(QLatin1String("ExpertMode"), m_useExpertMode); qs->setValue(QLatin1String("ExpertMode"), m_useExpertMode);
// Usage data collection temporarily disabled qs->setValue(QLatin1String("CollectUsageData"), m_collectUsageData);
// qs->setValue(QLatin1String("CollectUsageData"), m_collectUsageData); qs->setValue(QLatin1String("ShowUsageDataDisclaimer"), m_showUsageDataDisclaimer);
// qs->setValue(QLatin1String("ShowUsageDataDisclaimer"), m_showUsageDataDisclaimer);
qs->setValue(QLatin1String("LastUsageHash"), m_lastUsageHash); qs->setValue(QLatin1String("LastUsageHash"), m_lastUsageHash);
qs->endGroup(); qs->endGroup();
} }
@ -264,18 +260,16 @@ bool GeneralSettings::useUDPMirror() const
return m_useUDPMirror; return m_useUDPMirror;
} }
/** Usage data collection temporarily disabled bool GeneralSettings::collectUsageData() const
bool GeneralSettings::collectUsageData() const {
{
return m_collectUsageData; return m_collectUsageData;
} }
bool GeneralSettings::showUsageDataDisclaimer() const
bool GeneralSettings::showUsageDataDisclaimer() const {
{
return m_showUsageDataDisclaimer; return m_showUsageDataDisclaimer;
} }
********************/
QString GeneralSettings::lastUsageHash() const QString GeneralSettings::lastUsageHash() const
{ {
return m_lastUsageHash; return m_lastUsageHash;
@ -286,20 +280,18 @@ bool GeneralSettings::useExpertMode() const
return m_useExpertMode; return m_useExpertMode;
} }
/** Usage data collection temporarily disabled void GeneralSettings::setCollectUsageData(bool collect)
void GeneralSettings::setCollectUsageData(bool collect) {
{
if (collect && collect != m_collectUsageData) { if (collect && collect != m_collectUsageData) {
setShowUsageDataDisclaimer(true); setShowUsageDataDisclaimer(true);
} }
m_collectUsageData = collect; m_collectUsageData = collect;
} }
void GeneralSettings::setShowUsageDataDisclaimer(bool show) void GeneralSettings::setShowUsageDataDisclaimer(bool show)
{ {
m_showUsageDataDisclaimer = show; m_showUsageDataDisclaimer = show;
} }
********************/
void GeneralSettings::setLastUsageHash(QString hash) void GeneralSettings::setLastUsageHash(QString hash)
{ {

View File

@ -154,13 +154,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<!-- <item row="15" column="0"> <item row="15" column="0">
<widget class="QLabel" name="labelExpert_2"> <widget class="QLabel" name="labelExpert_2">
<property name="text"> <property name="text">
<string>Contribute usage statistics:</string> <string>Contribute usage statistics:</string>
</property> </property>
</widget> </widget>
</item> --> </item>
<item row="9" column="2"> <item row="9" column="2">
<widget class="QWidget" name="widget_2" native="true"> <widget class="QWidget" name="widget_2" native="true">
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
@ -243,7 +243,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<!--<item row="15" column="2"> <item row="15" column="2">
<widget class="QCheckBox" name="cbUsageData"> <widget class="QCheckBox" name="cbUsageData">
<property name="text"> <property name="text">
<string/> <string/>
@ -252,7 +252,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> --> </item>
</layout> </layout>
</widget> </widget>
</item> </item>

View File

@ -244,11 +244,10 @@ plugin_flightlog.depends += plugin_uavtalk
SUBDIRS += plugin_flightlog SUBDIRS += plugin_flightlog
# Usage Tracker plugin # Usage Tracker plugin
# Uncomment the following lines to re-enable the usagetracker plugin
plugin_usagetracker.subdir = usagetracker plugin_usagetracker.subdir = usagetracker
plugin_usagetracker.depends = plugin_coreplugin plugin_usagetracker.depends = plugin_coreplugin
plugin_usagetracker.depends += plugin_uavobjects plugin_usagetracker.depends += plugin_uavobjects
plugin_usagetracker.depends += plugin_uavtalk plugin_usagetracker.depends += plugin_uavtalk
plugin_setupwizard.depends += plugin_uavobjectutil plugin_setupwizard.depends += plugin_uavobjectutil
# SUBDIRS += plugin_usagetracker SUBDIRS += plugin_usagetracker