Skip to content

Commit

Permalink
Added support to clear status areas with <emit resetStatusMessages();>
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Jun 7, 2014
1 parent f14300f commit e5ea25d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/uas/QGCUASFileManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class QGCUASFileManager : public QObject

signals:
void statusMessage(const QString& msg);
void resetStatusMessages();

public slots:
void receiveMessage(LinkInterface* link, mavlink_message_t message);
Expand Down
1 change: 1 addition & 0 deletions src/ui/QGCUASFileView.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ QGCUASFileView::QGCUASFileView(QWidget *parent, QGCUASFileManager *manager) :
connect(ui->downloadButton, SIGNAL(clicked()), this, SLOT(downloadFiles()));

connect(_manager, SIGNAL(statusMessage(QString)), ui->messageArea, SLOT(appendPlainText(QString)));
connect(_manager, SIGNAL(resetStatusMessages()), ui->messageArea, SLOT(clear()));
}

QGCUASFileView::~QGCUASFileView()
Expand Down

0 comments on commit e5ea25d

Please sign in to comment.