update mavlink

This commit is contained in:
hm
2020-10-22 09:14:33 +08:00
parent 4db2074898
commit fe24c25a3e
3 changed files with 21 additions and 5 deletions
+15 -1
View File
@@ -1,4 +1,4 @@
#include "CommandUI.h"
#include "CommandUI.h"
#include "ui_CommandUI.h"
#include "QtTextToSpeech/QtTextToSpeech"
@@ -133,6 +133,20 @@ void CommandUI::wheelEvent(QWheelEvent *e)
}
}
void CommandUI::keyPressEvent(QKeyEvent *event) //键盘按下事件
{
switch(event->key())
{
case Qt::Key_Space :
{
qInfo() << "command key" << event;
}
break;
}
}
void CommandUI::mousePressEvent(QMouseEvent *event)
{
if (event->button() == Qt::MiddleButton)
+5 -3
View File
@@ -1,4 +1,4 @@
#ifndef COMMANDUI_H
#ifndef COMMANDUI_H
#define COMMANDUI_H
#include <QWidget>
@@ -60,6 +60,10 @@ protected:
void wheelEvent(QWheelEvent *e);
void mousePressEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
void loadCommandJson(const QString& jsonFilename);
public slots:
void setFloat(void);
void setFloatFlag(bool flag);
@@ -91,9 +95,7 @@ private slots:
void on_groupBox_Command_clicked();
protected:
void loadCommandJson(const QString& jsonFilename);
private:
+1 -1
Submodule mavlink updated: 54c7286a2c...d1fe3a364f