QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ShowAppMessageState.cc
Go to the documentation of this file.
2#include "AppMessages.h"
3
4ShowAppMessageState::ShowAppMessageState(QState* parentState, const QString& appMessage)
5 : QGCState("ShowAppMessageState", parentState)
6 , _appMessage(appMessage)
7{
8 connect(this, &QState::entered, this, [this] () {
9 qCDebug(QGCStateMachineLog) << _appMessage << stateName();
10 QGC::showAppMessage(_appMessage);
11 emit advance();
12 });
13}
QString stateName() const
Full-featured base class for QGroundControl state machine states.
Definition QGCState.h:23
ShowAppMessageState(QState *parentState, const QString &appMessage)
void showAppMessage(const QString &message, const QString &title)
Modal application message. Queued if the UI isn't ready yet.
Definition AppMessages.cc:9