Commit 3be737b1 authored by Bryant's avatar Bryant

Fixed a couple of compilation warnings and removed some blank lines/dead code from QGCTextLabel.cc

parent 5a8d202a
...@@ -33,8 +33,6 @@ QGCTextLabel::~QGCTextLabel() ...@@ -33,8 +33,6 @@ QGCTextLabel::~QGCTextLabel()
delete ui; delete ui;
} }
void QGCTextLabel::startEditMode() void QGCTextLabel::startEditMode()
{ {
// Hide elements // Hide elements
...@@ -122,14 +120,14 @@ void QGCTextLabel::readSettings(const QString& pre,const QVariantMap& settings) ...@@ -122,14 +120,14 @@ void QGCTextLabel::readSettings(const QString& pre,const QVariantMap& settings)
//int commandId = settings.value(pre + "QGC_COMMAND_BUTTON_COMMANDID", 0).toInt(); //int commandId = settings.value(pre + "QGC_COMMAND_BUTTON_COMMANDID", 0).toInt();
//ui->editNameLabel->setText(settings.value(pre + "QGC_COMMAND_BUTTON_DESCRIPTION", "ERROR LOADING BUTTON").toString()); //ui->editNameLabel->setText(settings.value(pre + "QGC_COMMAND_BUTTON_DESCRIPTION", "ERROR LOADING BUTTON").toString());
//ui->nameLabel->setText(settings.value(pre + "QGC_COMMAND_BUTTON_DESCRIPTION", "ERROR LOADING BUTTON").toString()); //ui->nameLabel->setText(settings.value(pre + "QGC_COMMAND_BUTTON_DESCRIPTION", "ERROR LOADING BUTTON").toString());
} }
void QGCTextLabel::textMessageReceived(int uasid, int component, int severity, QString message) void QGCTextLabel::textMessageReceived(int uasid, int component, int severity, QString message)
{ {
Q_UNUSED(uasid);
Q_UNUSED(component);
Q_UNUSED(severity);
if (enabledNum != -1) if (enabledNum != -1)
{ {
//SUCCESS: Executed CMD: 241 //SUCCESS: Executed CMD: 241
...@@ -167,10 +165,6 @@ void QGCTextLabel::readSettings(const QSettings& settings) ...@@ -167,10 +165,6 @@ void QGCTextLabel::readSettings(const QSettings& settings)
ui->textLabel->setText(""); ui->textLabel->setText("");
connect(uas,SIGNAL(textMessageReceived(int,int,int,QString)),this,SLOT(textMessageReceived(int,int,int,QString))); connect(uas,SIGNAL(textMessageReceived(int,int,int,QString)),this,SLOT(textMessageReceived(int,int,int,QString)));
} }
else
{
}
} }
void QGCTextLabel::enableText(int num) void QGCTextLabel::enableText(int num)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment