1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-52 Hide Connect/Disconnect buttons in telemetry mode. Unhide in other modes

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1795 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-09-29 12:12:46 +00:00 committed by edouard
parent c95b1e6117
commit 434a9499e2

View File

@ -89,6 +89,8 @@ void GpsDisplayGadget::loadConfiguration(IUAVGadgetConfiguration* config)
#endif
m_widget->connectButton->setEnabled(true);
m_widget->disconnectButton->setEnabled(false);
m_widget->connectButton->setHidden(false);
m_widget->disconnectButton->setHidden(false);
connect(port, SIGNAL(readyRead()), this, SLOT(onDataAvailable()));
}
@ -97,8 +99,8 @@ void GpsDisplayGadget::loadConfiguration(IUAVGadgetConfiguration* config)
} else if (gpsDisplayConfig->connectionMode() == "Telemetry") {
qDebug() << "Using Telemetry parser";
parser = new TelemetryParser();
m_widget->connectButton->setEnabled(false);
m_widget->disconnectButton->setEnabled(false);
m_widget->disconnectButton->setHidden(true);
m_widget->connectButton->setHidden(true);
m_widget->dataStreamGroupBox->setHidden(true);
} else if (gpsDisplayConfig->connectionMode() == "Network") {
// Not implemented for now...