From 3be737b10fe78b7ad59b9966d4eaf2546504ff19 Mon Sep 17 00:00:00 2001 From: Bryant Date: Sun, 19 May 2013 01:23:48 -0700 Subject: [PATCH] Fixed a couple of compilation warnings and removed some blank lines/dead code from QGCTextLabel.cc --- src/ui/designer/QGCTextLabel.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/ui/designer/QGCTextLabel.cc b/src/ui/designer/QGCTextLabel.cc index 6a56bcf24..dd2bbf940 100644 --- a/src/ui/designer/QGCTextLabel.cc +++ b/src/ui/designer/QGCTextLabel.cc @@ -33,8 +33,6 @@ QGCTextLabel::~QGCTextLabel() delete ui; } - - void QGCTextLabel::startEditMode() { // Hide elements @@ -122,14 +120,14 @@ void QGCTextLabel::readSettings(const QString& pre,const QVariantMap& settings) //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->nameLabel->setText(settings.value(pre + "QGC_COMMAND_BUTTON_DESCRIPTION", "ERROR LOADING BUTTON").toString()); } void QGCTextLabel::textMessageReceived(int uasid, int component, int severity, QString message) { + Q_UNUSED(uasid); + Q_UNUSED(component); + Q_UNUSED(severity); if (enabledNum != -1) { //SUCCESS: Executed CMD: 241 @@ -167,10 +165,6 @@ void QGCTextLabel::readSettings(const QSettings& settings) ui->textLabel->setText(""); connect(uas,SIGNAL(textMessageReceived(int,int,int,QString)),this,SLOT(textMessageReceived(int,int,int,QString))); } - else - { - - } } void QGCTextLabel::enableText(int num) { -- 2.22.0